Small improvements for issue #5225666

Sort disabled apps to the bottom of the list to make them easier to
find together.

Also change the order of the tabs because with the new layout anything
after the third tab is buried so put all apps at the end so the running
tab is more visible.

Change-Id: Id022fdbf366505cf0da3fb9a6270c3f2e2704d51
This commit is contained in:
Dianne Hackborn
2011-08-29 12:22:35 -07:00
parent 427a7ba104
commit c883ee5eaa
2 changed files with 7 additions and 4 deletions

View File

@@ -153,6 +153,9 @@ public class ApplicationsState {
private final Collator sCollator = Collator.getInstance();
@Override
public int compare(AppEntry object1, AppEntry object2) {
if (object1.info.enabled != object2.info.enabled) {
return object1.info.enabled ? -1 : 1;
}
return sCollator.compare(object1.label, object2.label);
}
};