Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50ca28f7 authored by Danny Wang's avatar Danny Wang
Browse files

autoclick: Fix scroll panel gets hidden behind the Shelf

screencast: http://go/scrcast/NTMwNTc1NTM3NTc2MzQ1NnwxODIxMzA5NS1jMg

Bug: b/421236937
Test: manually verified on DUT
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: Icca85b40cd7dac9473146c4300f82847c0617b70
parent 997cc66f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -285,7 +285,8 @@ public class AutoclickScrollPanel {
        layoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
        layoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
        layoutParams.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
        layoutParams.setFitInsetsTypes(WindowInsets.Type.statusBars());
        layoutParams.setFitInsetsTypes(
                WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars());
        layoutParams.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
        layoutParams.format = PixelFormat.TRANSLUCENT;
        layoutParams.setTitle(AutoclickScrollPanel.class.getSimpleName());