Clean up AppButtonsPreferenceController
mDisableAfterUninstall and mUpdatedSysApp is always false. And appChanged is always true. Bug: 236346018 Test: Manual with Settings App Change-Id: Icfb9fbea92d5c728cbef9d76569d59d5085a51e6
This commit is contained in:
@@ -48,12 +48,10 @@ public class ButtonActionDialogFragment extends InstrumentedDialogFragment imple
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef({
|
||||
DialogType.DISABLE,
|
||||
DialogType.SPECIAL_DISABLE,
|
||||
DialogType.FORCE_STOP
|
||||
})
|
||||
public @interface DialogType {
|
||||
int DISABLE = 0;
|
||||
int SPECIAL_DISABLE = 1;
|
||||
int FORCE_STOP = 2;
|
||||
}
|
||||
|
||||
@@ -105,7 +103,6 @@ public class ButtonActionDialogFragment extends InstrumentedDialogFragment imple
|
||||
final Context context = getContext();
|
||||
switch (id) {
|
||||
case DialogType.DISABLE:
|
||||
case DialogType.SPECIAL_DISABLE:
|
||||
return new AlertDialog.Builder(context)
|
||||
.setMessage(R.string.app_disable_dlg_text)
|
||||
.setPositiveButton(R.string.app_disable_dlg_positive, this)
|
||||
|
||||
Reference in New Issue
Block a user