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

Commit bc80d7e5 authored by Yein Jo's avatar Yein Jo
Browse files

Fix wired charging ripple not showing up in multi-user mode.

Changed the Window type to TYPE_KEYGUARD_DIALOG to make the ripple show
up in non-owner user mode. Per android official doc, TYPE_SYSTEM_OVERLAY does not support multiuser -- "In multiuser systems shows only on the owning user's window." It's also deprecated.

This matches with the WirelssCharingAnimation Window type.

Please find the recording in the bug.

Bug: 266112677
Test: Manual & `adb shell cmd statusbar charging-ripple`
Change-Id: Ibc73d27d9c7272a4ae5dc4da4e894c020addd1e1
parent 71592cf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ class WiredChargingRippleController @Inject constructor(
        height = WindowManager.LayoutParams.MATCH_PARENT
        layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
        format = PixelFormat.TRANSLUCENT
        type = WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY
        type = WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG
        fitInsetsTypes = 0 // Ignore insets from all system bars
        title = "Wired Charging Animation"
        flags = (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE