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

Commit 4d8cd6a0 authored by Shan Huang's avatar Shan Huang
Browse files

Set charging animation windows as trusted overlays so that

touches can pass through.

Test: Manual
Bug: 184867824
Change-Id: I8f37b68ea48076eb9ad90aa1d7d200b9316a2253
parent 279a38e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -121,6 +121,7 @@ public class WirelessChargingAnimation {
            params.setFitInsetsTypes(0 /* ignore all system bar insets */);
            params.setFitInsetsTypes(0 /* ignore all system bar insets */);
            params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
            params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                    | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
                    | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
            params.setTrustedOverlay();


            if (looper == null) {
            if (looper == null) {
                // Use Looper.myLooper() if looper is not specified.
                // Use Looper.myLooper() if looper is not specified.
+1 −0
Original line number Original line Diff line number Diff line
@@ -58,6 +58,7 @@ class WiredChargingRippleController @Inject constructor(
        title = "Wired Charging Animation"
        title = "Wired Charging Animation"
        flags = (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
        flags = (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                or WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE)
                or WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE)
        setTrustedOverlay()
    }
    }


    @VisibleForTesting
    @VisibleForTesting