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

Commit 27418671 authored by Suchi Amalapurapu's avatar Suchi Amalapurapu Committed by Android Git Automerger
Browse files

am 937dc855: am b12b21a5: am b99e029d: Fix string for uninstall button for system apps.

parents 7d18d302 937dc855
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -276,12 +276,13 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
        boolean enabled = true;
        if (mUpdatedSysApp) {
            mUninstallButton.setText(R.string.app_factory_reset);
        } else if ((mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0){
            mUninstallButton.setText(R.string.uninstall_text);
        } else {
            // Disable uninstall for system apps
            if ((mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0){
                // Disable button for system applications.
                enabled = false;
            }
            mUninstallButton.setText(R.string.uninstall_text);
        }
        mUninstallButton.setEnabled(enabled);
        if (enabled) {
            // Register listener