Merge "Make ImmersiveModeConfirmation trusted"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ca3f3e0353
@@ -190,7 +190,9 @@ public class ImmersiveModeConfirmation {
|
||||
| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
lp.setFitInsetsTypes(lp.getFitInsetsTypes() & ~Type.statusBars());
|
||||
lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
|
||||
// Trusted overlay so touches outside the touchable area are allowed to pass through
|
||||
lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS
|
||||
| WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY;
|
||||
lp.setTitle("ImmersiveModeConfirmation");
|
||||
lp.windowAnimations = com.android.internal.R.style.Animation_ImmersiveModeConfirmation;
|
||||
lp.token = getWindowToken();
|
||||
|
||||
Reference in New Issue
Block a user