Add app details menu item to uninstall an app for all users.
Also some fixes: uninstalled apps are now marked as such in the all apps lists, and sorted to the bottom like disabled apps. We don't immediately close the installed app details screen when launching the uninstall UI. Change-Id: Id22b749c20fc2441733c604d1de8889269217c5c
This commit is contained in:
@@ -774,8 +774,12 @@ public class ManageApplications extends Fragment implements
|
||||
holder.appIcon.setImageDrawable(entry.icon);
|
||||
}
|
||||
holder.updateSizeText(mTab.mInvalidSizeStr, mWhichSize);
|
||||
if (InstalledAppDetails.SUPPORT_DISABLE_APPS) {
|
||||
holder.disabled.setVisibility(entry.info.enabled ? View.GONE : View.VISIBLE);
|
||||
if ((entry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0) {
|
||||
holder.disabled.setVisibility(View.VISIBLE);
|
||||
holder.disabled.setText(R.string.not_installed);
|
||||
} else if (!entry.info.enabled) {
|
||||
holder.disabled.setVisibility(View.VISIBLE);
|
||||
holder.disabled.setText(R.string.disabled);
|
||||
} else {
|
||||
holder.disabled.setVisibility(View.GONE);
|
||||
}
|
||||
@@ -997,7 +1001,6 @@ public class ManageApplications extends Fragment implements
|
||||
|
||||
@Override
|
||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||
Log.i(TAG, "onCreateOptionsMenu in " + this + ": " + menu);
|
||||
mOptionsMenu = menu;
|
||||
// note: icons removed for now because the cause the new action
|
||||
// bar UI to be very confusing.
|
||||
|
Reference in New Issue
Block a user