Use SYSTEM_... window manager flags
Test: Built Bug: 116798569 Change-Id: Iac0728b348b6105b843d83415f0abde2de3cb074
This commit is contained in:
@@ -87,13 +87,13 @@ public class NotificationAccessConfirmationActivity extends Activity
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
getWindow().addFlags(
|
||||
WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||
WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
getWindow().clearFlags(
|
||||
WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||
WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user