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

Commit c05be131 authored by Arthur Hung's avatar Arthur Hung
Browse files

Add TYPE_STATUS_BAR_ADDITIONAL to trusted overlay

The TYPE_STATUS_BAR_ADDITIONAL is used to show the status bar in non
conventional parts of the screen. Add it to trusted overlay or we could
get FLAG_WINDOW_IS_PARTIALLY_OBSCURED when receiving touch.

Bug: 194459109
Test: atest WindowInputTests
Change-Id: I3f41f3eeeed431309d348cc4d1286e4b346f1259
parent c99b13e7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL;
import static android.view.WindowManager.LayoutParams.TYPE_NOTIFICATION_SHADE;
import static android.view.WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY;
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR;
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL;
import static android.view.WindowManager.LayoutParams.TYPE_VOICE_INTERACTION;
import static android.view.WindowManager.LayoutParams.TYPE_WALLPAPER;

@@ -648,6 +649,7 @@ final class InputMonitor {
                || type == TYPE_DOCK_DIVIDER
                || type == TYPE_ACCESSIBILITY_OVERLAY
                || type == TYPE_INPUT_CONSUMER
                || type == TYPE_VOICE_INTERACTION;
                || type == TYPE_VOICE_INTERACTION
                || type == TYPE_STATUS_BAR_ADDITIONAL;
    }
}