Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 324ef3c8 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by android-build-merger
Browse files

Merge \"Hide Status and Navigation Bar when uninstalling\" into nyc-dev

am: 9c177f8d

Change-Id: Ieac52df39c5481ea8c964be61d3a5a5c9bc024e3
parents ae823194 9c177f8d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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);