packages/apps/Taskbar
Revision | c8fd290c910f6368af1c40a207120381e5903a77 (tree) |
---|---|
Time | 2019-09-04 11:04:50 |
Author | Braden Farmer <farmerbb@gmai...> |
Commiter | Braden Farmer |
Don't apply display cutout mode to ContextMenuActivity if there's no absolute coordinates
@@ -117,7 +117,10 @@ public class ContextMenuActivity extends PreferenceActivity implements Preferenc | ||
117 | 117 | |
118 | 118 | // Determine where to position the dialog on screen |
119 | 119 | WindowManager.LayoutParams params = getWindow().getAttributes(); |
120 | - CompatUtils.applyDisplayCutoutModeTo(params); | |
120 | + | |
121 | + if(args.containsKey("x") && args.containsKey("y")) | |
122 | + CompatUtils.applyDisplayCutoutModeTo(params); | |
123 | + | |
121 | 124 | DisplayInfo display = U.getDisplayInfo(this); |
122 | 125 | |
123 | 126 | int statusBarHeight = 0; |