Merge "Set charging animation windows as trusted overlays so that touches can pass through." into sc-dev
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user