Project

General

Profile

« Previous | Next » 

Revision 466b2ffc

Added by Leszek Koltunski over 4 years ago

Remove Navigation Bar in the last case, when we were popping out a PopupWindow!
Navigation Bar fully gone now!

View differences:

src/main/java/org/distorted/states/RubikStatePlay.java
27 27
import android.view.Gravity;
28 28
import android.view.LayoutInflater;
29 29
import android.view.View;
30
import android.view.Window;
30 31
import android.widget.Button;
31 32
import android.widget.GridLayout;
32 33
import android.widget.ImageButton;
......
162 163
        {
163 164
        if( act.getPreRender().canPlay() )
164 165
          {
165
          boolean vertical = act.isVertical();
166
          mObjectGrid.setOrientation(vertical ? GridLayout.VERTICAL:GridLayout.HORIZONTAL);
166
          mObjectPopup.setFocusable(false);
167
          mObjectPopup.update();
168

  
169
          View popupView = mObjectPopup.getContentView();
170
          popupView.setSystemUiVisibility(RubikActivity.FLAGS);
171

  
167 172
          mObjectPopup.showAsDropDown(view, margin, margin, Gravity.LEFT);
173
          mObjectPopup.update(view, mObjectSize*mColCount, mObjectSize*mRowCount);
174

  
175
          mObjectPopup.setFocusable(true);
176
          mObjectPopup.update();
168 177

  
169
          int layhei = mObjectSize * (vertical? mRowCount:mColCount);
170
          int laywid = mObjectSize * (vertical? mColCount:mRowCount);
171
          mObjectPopup.update(view, laywid, layhei);
172 178
          }
173 179
        }
174 180
      });
......
197 203
      @Override
198 204
      public void onClick(View view)
199 205
        {
206
        mPlayPopup.setFocusable(false);
207
        mPlayPopup.update();
208

  
209
        View popupView = mPlayPopup.getContentView();
210
        popupView.setSystemUiVisibility(RubikActivity.FLAGS);
211

  
200 212
        mPlayPopup.showAsDropDown(view, margin, margin, Gravity.RIGHT);
201 213
        mPlayPopup.update(view, mPlayLayoutWidth, (int)(LEVELS_SHOWN*(mMenuItemSize+margin)+margin));
214

  
215
        mPlayPopup.setFocusable(true);
216
        mPlayPopup.update();
202 217
        }
203 218
      });
204 219
    }
......
229 244
        {
230 245
        if( act.getPreRender().canPlay() )
231 246
          {
247
          mMenuPopup.setFocusable(false);
248
          mMenuPopup.update();
249

  
250
          View popupView = mMenuPopup.getContentView();
251
          popupView.setSystemUiVisibility(RubikActivity.FLAGS);
252

  
232 253
          mMenuPopup.showAsDropDown(view, (int)(-width/12), margin, Gravity.CENTER);
233 254
          mMenuPopup.update(view, mMenuLayoutWidth, mMenuLayoutHeight);
255

  
256
          mMenuPopup.setFocusable(true);
257
          mMenuPopup.update();
234 258
          }
235 259
        }
236 260
      });

Also available in: Unified diff