Revision 456780f1
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/states/RubikStatePlay.java | ||
---|---|---|
162 | 162 |
{ |
163 | 163 |
if( act.getPreRender().canPlay() ) |
164 | 164 |
{ |
165 |
if( mObjectPopup==null ) |
|
166 |
{ |
|
167 |
// I completely don't understand it, but Firebase says occasionally mObjectPopup is null here. Recreate. |
|
168 |
float width = act.getScreenWidthInPixels(); |
|
169 |
setupObjectWindow(act,width); |
|
170 |
} |
|
171 |
|
|
165 | 172 |
mObjectPopup.setFocusable(false); |
166 | 173 |
mObjectPopup.update(); |
167 | 174 |
|
... | ... | |
231 | 238 |
{ |
232 | 239 |
if( act.getPreRender().canPlay() ) |
233 | 240 |
{ |
241 |
if( mMenuPopup==null ) |
|
242 |
{ |
|
243 |
// I completely don't understand it, but Firebase says occasionally mMenuPopup is null here. Recreate. |
|
244 |
float width = act.getScreenWidthInPixels(); |
|
245 |
setupMenuWindow(act,width); |
|
246 |
} |
|
247 |
|
|
234 | 248 |
mMenuPopup.setFocusable(false); |
235 | 249 |
mMenuPopup.update(); |
236 | 250 |
|
Also available in: Unified diff
Play State: Recreate all 3 PopupWindows.