From 75f6f6fb5f5a88efb4b16931890f73cdc28d6375 Mon Sep 17 00:00:00 2001 From: "Philip P. Moltmann" Date: Thu, 2 Jun 2016 13:53:09 -0700 Subject: Hide Status and Navigation Bar when uninstalling ... at least unless we want to show a progress dialog. Fixes: 29094372 Change-Id: I45e0bbf32355a93635c773c526151b849bc1e8a3 --- src/com/android/packageinstaller/UninstallAppProgress.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/android/packageinstaller/UninstallAppProgress.java b/src/com/android/packageinstaller/UninstallAppProgress.java index 008ce7c4..63a243b2 100755 --- a/src/com/android/packageinstaller/UninstallAppProgress.java +++ b/src/com/android/packageinstaller/UninstallAppProgress.java @@ -289,6 +289,8 @@ public class UninstallAppProgress extends Activity implements OnClickListener { // UI at all as the app is uninstalled very quickly. If we show the UI and instantly remove // it, it just looks like a flicker. getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); + getWindow().setStatusBarColor(Color.TRANSPARENT); + getWindow().setNavigationBarColor(Color.TRANSPARENT); getPackageManager().deletePackageAsUser(mAppInfo.packageName, observer, mAllUsers ? PackageManager.DELETE_ALL_USERS : 0, mUser.getIdentifier()); @@ -328,6 +330,12 @@ public class UninstallAppProgress extends Activity implements OnClickListener { getTheme())); } + getTheme().resolveAttribute(android.R.attr.navigationBarColor, attribute, true); + getWindow().setNavigationBarColor(attribute.data); + + getTheme().resolveAttribute(android.R.attr.statusBarColor, attribute, true); + getWindow().setStatusBarColor(attribute.data); + boolean isUpdate = ((mAppInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0); setTitle(isUpdate ? R.string.uninstall_update_title : R.string.uninstall_application_title); -- cgit v1.2.3