Update to work with the activity manager taking over OOM settings.

The values it needs are no longer in properties.

Also fix a few problems: bug with apps being left in the services
list, sorting of internal storage.

Change-Id: Ife9706e004931269c36a7bc37b9dbb016064c2e4
This commit is contained in:
Dianne Hackborn
2011-08-07 16:29:05 -07:00
parent 2826bc4ca5
commit 430a3d3376
4 changed files with 75 additions and 93 deletions

View File

@@ -333,7 +333,17 @@ public class ManageApplications extends Fragment implements
}
switch (mLastSortMode) {
case SORT_ORDER_SIZE:
comparatorObj = ApplicationsState.SIZE_COMPARATOR;
switch (mWhichSize) {
case SIZE_INTERNAL:
comparatorObj = ApplicationsState.INTERNAL_SIZE_COMPARATOR;
break;
case SIZE_EXTERNAL:
comparatorObj = ApplicationsState.EXTERNAL_SIZE_COMPARATOR;
break;
default:
comparatorObj = ApplicationsState.SIZE_COMPARATOR;
break;
}
break;
default:
comparatorObj = ApplicationsState.ALPHA_COMPARATOR;