Merge "Change icons for disable and enable button"
This commit is contained in:
committed by
Android (Google) Code Review
commit
f11c4c242a
@@ -560,15 +560,15 @@ public class AppButtonsPreferenceController extends BasePreferenceController imp
|
||||
|| isSystemPackage(mActivity.getResources(), mPm, mPackageInfo)) {
|
||||
// Disable button for core system applications.
|
||||
mButtonsPref.setButton2Text(R.string.disable_text)
|
||||
.setButton2Icon(R.drawable.ic_settings_delete);
|
||||
.setButton2Icon(R.drawable.ic_settings_disable);
|
||||
} else if (mAppEntry.info.enabled && !isDisabledUntilUsed()) {
|
||||
mButtonsPref.setButton2Text(R.string.disable_text)
|
||||
.setButton2Icon(R.drawable.ic_settings_delete);
|
||||
.setButton2Icon(R.drawable.ic_settings_disable);
|
||||
disableable = !mApplicationFeatureProvider.getKeepEnabledPackages()
|
||||
.contains(mAppEntry.info.packageName);
|
||||
} else {
|
||||
mButtonsPref.setButton2Text(R.string.enable_text)
|
||||
.setButton2Icon(R.drawable.ic_settings_install);
|
||||
.setButton2Icon(R.drawable.ic_settings_enable);
|
||||
disableable = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user