Revision 00aa398a
Added by Leszek Koltunski about 4 years ago
| src/main/java/org/distorted/screens/RubikScreenPlay.java | ||
|---|---|---|
| 495 | 495 |
private void displayPopup(RubikActivity act, View view, PopupWindow window, int w, int h, int xoff, int yoff) |
| 496 | 496 |
{
|
| 497 | 497 |
View topLayout = act.findViewById(R.id.relativeLayout); |
| 498 |
topLayout.getLocationOnScreen(mLocation); |
|
| 499 |
mIsFullScreen = (mLocation[1]==0); |
|
| 498 |
|
|
| 499 |
if( topLayout!=null ) |
|
| 500 |
{
|
|
| 501 |
topLayout.getLocationOnScreen(mLocation); |
|
| 502 |
mIsFullScreen = (mLocation[1]==0); |
|
| 503 |
} |
|
| 504 |
else |
|
| 505 |
{
|
|
| 506 |
mIsFullScreen = true; |
|
| 507 |
} |
|
| 500 | 508 |
|
| 501 | 509 |
// if on Android 11 or we are fullscreen |
| 502 | 510 |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R || mIsFullScreen ) |
Also available in: Unified diff
safety!