+86
−0
packages/SystemUI/src/com/android/systemui/shade/display/StatusBarTouchShadeDisplayPolicy.kt
0 → 100644
+95
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This policy sets the shade in the same display of the last status bar touch. When a display is removed, the shade window falls back to the default one. Note that StatusBarTouchShadeDisplayPolicy has been written to be performant: no useless operations are done unless the policy is the selected one. To trigger this behaviour, it is necessary to run: "adb shell cmd statusbar shade_display_override status_bar_latest_touch" (This only works if the flag is on) Bug: 362719719 Bug: 380444270 Test: PhoneStatusBarViewControllerTest, StatusBarTouchShadeDisplayPolicyTest Flag: com.android.systemui.shade_window_goes_around Change-Id: I25ac6b954f4671a4db30c8620852efd8e437cecf