Merge "Use SYSTEM_... window manager flags"

This commit is contained in:
Philip P. Moltmann
2018-10-15 16:28:39 +00:00
committed by Android (Google) Code Review
4 changed files with 10 additions and 10 deletions

View File

@@ -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();
}