Project

General

Profile

« Previous | Next » 

Revision 337f4660

Added by Leszek Koltunski 6 months ago

remove 'MESH_NICE'

View differences:

src/main/java/org/distorted/dialogs/RubikDialogPatternListAdapter.java
17 17
import android.widget.BaseExpandableListAdapter;
18 18
import android.widget.TextView;
19 19

  
20
import org.distorted.main_old.RubikActivity;
20
import org.distorted.main.MainActivity;
21 21
import org.distorted.objectlib.patterns.RubikPattern;
22 22
import org.distorted.main.R;
23 23

  
......
26 26
class RubikDialogPatternListAdapter extends BaseExpandableListAdapter
27 27
  {
28 28
  private final Context mContext;
29
  private final int mTab, mHeight;
29
  private final int mTab, mWidth;
30 30

  
31 31
///////////////////////////////////////////////////////////////////////////////////////////////////
32 32

  
33
  public RubikDialogPatternListAdapter(Context context, int tab, int height)
33
  public RubikDialogPatternListAdapter(Context context, int tab, int width)
34 34
    {
35 35
    mContext = context;
36 36
    mTab     = tab;
37
    mHeight  = height;
37
    mWidth   = width;
38 38
    }
39 39

  
40 40
///////////////////////////////////////////////////////////////////////////////////////////////////
......
67 67
      view = infalInflater.inflate(R.layout.dialog_pattern_child_item, null);
68 68
      }
69 69

  
70
    int size = (int)(mHeight* RubikActivity.PATTERN_CHILD_TEXT);
70
    int size = (int)(mWidth*MainActivity.PATTERN_CHILD_TEXT);
71 71

  
72 72
    TextView childItem = view.findViewById(R.id.child);
73 73
    childItem.setText(childName);
......
124 124
      view = inf.inflate(R.layout.dialog_pattern_group_item, null);
125 125
      }
126 126

  
127
    int size = (int)(mHeight* RubikActivity.PATTERN_GROUP_TEXT);
127
    int size = (int)(mWidth*MainActivity.PATTERN_GROUP_TEXT);
128 128

  
129 129
    TextView heading = view.findViewById(R.id.heading);
130 130
    heading.setText(groupName);

Also available in: Unified diff