This commit is contained in:
@@ -276,11 +276,12 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
|
|||||||
boolean enabled = true;
|
boolean enabled = true;
|
||||||
if (mUpdatedSysApp) {
|
if (mUpdatedSysApp) {
|
||||||
mUninstallButton.setText(R.string.app_factory_reset);
|
mUninstallButton.setText(R.string.app_factory_reset);
|
||||||
} else if ((mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0){
|
|
||||||
mUninstallButton.setText(R.string.uninstall_text);
|
|
||||||
} else {
|
} else {
|
||||||
// Disable uninstall for system apps
|
if ((mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0){
|
||||||
enabled = false;
|
// Disable button for system applications.
|
||||||
|
enabled = false;
|
||||||
|
}
|
||||||
|
mUninstallButton.setText(R.string.uninstall_text);
|
||||||
}
|
}
|
||||||
mUninstallButton.setEnabled(enabled);
|
mUninstallButton.setEnabled(enabled);
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
Reference in New Issue
Block a user