Fix pointer location would be truncated by nav bar

Pointer location window should ignore any window inset.

Bug: 151597647
Test: open pointer location, rotate device and check if truncated by nav
      bar
Change-Id: I4a8493c34befad9089699979d2f3b9e792ec5bbf
This commit is contained in:
Arthur Hung
2020-03-16 19:17:47 +08:00
parent bde104f8be
commit af7f6a9977

View File

@@ -3874,10 +3874,10 @@ public class DisplayPolicy {
WindowManager.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.MATCH_PARENT);
lp.type = WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY;
lp.flags = WindowManager.LayoutParams.FLAG_FULLSCREEN
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
lp.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
lp.setFitInsetsTypes(0);
lp.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
if (ActivityManager.isHighEndGfx()) {
lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;