Revision 74b08185
Added by Leszek Koltunski about 5 years ago
| src/main/java/org/distorted/states/RubikStatePlay.java | ||
|---|---|---|
| 68 | 68 | 
    private PopupWindow mObjectPopup, mMenuPopup;  | 
| 69 | 69 | 
    private int mObject = DEF_OBJECT;  | 
| 70 | 70 | 
    private int mSize = DEF_SIZE;  | 
| 71 | 
    private int mObjectLayoutWidth, mMenuLayoutHeight;  | 
|
| 71 | 
      private int mObjectLayoutWidth, mMenuLayoutWidth, mMenuLayoutHeight;
   | 
|
| 72 | 72 | 
    private LinearLayout mObjectLayout, mMenuLayout;  | 
| 73 | 73 | 
    private AppCompatSpinner mLevelSpinner;  | 
| 74 | 74 | 
    private ArrayAdapter<String> mSpinnerAdapter;  | 
| ... | ... | |
| 295 | 295 | 
    if( act.getPreRender().canPlay() )  | 
| 296 | 296 | 
              {
   | 
| 297 | 297 | 
    mMenuPopup.showAsDropDown(view, 0, -mMenuLayoutHeight-barHeight, Gravity.LEFT);  | 
| 298 | 
    mMenuPopup.update();  | 
|
| 298 | 
              mMenuPopup.update(view, mMenuLayoutWidth, mMenuLayoutHeight);
   | 
|
| 299 | 299 | 
    }  | 
| 300 | 300 | 
    }  | 
| 301 | 301 | 
    });  | 
| ... | ... | |
| 463 | 463 | 
    mMenuLayout.addView(button);  | 
| 464 | 464 | 
    }  | 
| 465 | 465 | 
     | 
| 466 | 
    mMenuLayoutWidth = (int)(width/2);  | 
|
| 466 | 467 | 
    mMenuLayoutHeight= (int)(margin + NUM_BUTTONS*(mMenuItemSize+margin));  | 
| 467 | 468 | 
    }  | 
| 468 | 469 | 
     | 
Also available in: Unified diff
Fix for Samsung Android 5