Allow users to re-enable apps once disabling them
Entries in the app list should not be disabled, instead we should be filtering for only items the user can modify. Bug: 20210219 Change-Id: Ida298a9ba16c1201ac238b85f299bdc7b0ae7a1d
This commit is contained in:
@@ -550,9 +550,7 @@ public class ManageApplications extends InstrumentedFragment
|
||||
ApplicationsState.AppEntry entry = mApplications.getAppEntry(position);
|
||||
mCurrentPkgName = entry.info.packageName;
|
||||
mCurrentUid = entry.info.uid;
|
||||
if (isAppEntryViewEnabled(entry)) {
|
||||
startApplicationDetailsActivity();
|
||||
}
|
||||
startApplicationDetailsActivity();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -658,13 +656,6 @@ public class ManageApplications extends InstrumentedFragment
|
||||
|
||||
}
|
||||
|
||||
private static boolean isAppEntryViewEnabled(AppEntry entry) {
|
||||
if ((entry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0 || !entry.info.enabled) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Custom adapter implementation for the ListView
|
||||
* This adapter maintains a map for each displayed application and its properties
|
||||
@@ -991,7 +982,6 @@ public class ManageApplications extends InstrumentedFragment
|
||||
holder.appIcon.setImageDrawable(entry.icon);
|
||||
}
|
||||
updateSummary(holder);
|
||||
convertView.setEnabled(isAppEntryViewEnabled(entry));
|
||||
if ((entry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0) {
|
||||
holder.disabled.setVisibility(View.VISIBLE);
|
||||
holder.disabled.setText(R.string.not_installed);
|
||||
|
Reference in New Issue
Block a user