Merge "Hide overlays over uninstall confirm dialog" into rvc-dev am: d3da899a52 am: b3f0178c0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12950973 Change-Id: I694d9061131ba6f84b03ddc75d0d401b32aec54d
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
package com.android.packageinstaller;
|
package com.android.packageinstaller;
|
||||||
|
|
||||||
import static android.app.AppOpsManager.MODE_ALLOWED;
|
import static android.app.AppOpsManager.MODE_ALLOWED;
|
||||||
|
import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
|
||||||
|
|
||||||
import static com.android.packageinstaller.PackageUtil.getMaxTargetSdkVersionForUid;
|
import static com.android.packageinstaller.PackageUtil.getMaxTargetSdkVersionForUid;
|
||||||
|
|
||||||
@@ -87,6 +88,8 @@ public class UninstallerActivity extends Activity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle icicle) {
|
public void onCreate(Bundle icicle) {
|
||||||
|
getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||||
|
|
||||||
// Never restore any state, esp. never create any fragments. The data in the fragment might
|
// Never restore any state, esp. never create any fragments. The data in the fragment might
|
||||||
// be stale, if e.g. the app was uninstalled while the activity was destroyed.
|
// be stale, if e.g. the app was uninstalled while the activity was destroyed.
|
||||||
super.onCreate(null);
|
super.onCreate(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user