Revert "Display the running app first on the app grid"

This reverts commit 36f8cc02cb.
This commit is contained in:
Cameron Gutman
2016-06-20 20:30:47 -07:00
parent 60d3d8b3ae
commit 2dcf5486da

View File

@@ -66,14 +66,6 @@ public class AppGridAdapter extends GenericGridAdapter<AppView.AppObject> {
Collections.sort(itemList, new Comparator<AppView.AppObject>() {
@Override
public int compare(AppView.AppObject lhs, AppView.AppObject rhs) {
// Bubble the running app up to the top of the list
if (lhs.app.getIsRunning() && !rhs.app.getIsRunning()) {
return -1;
}
else if (!lhs.app.getIsRunning() && rhs.app.getIsRunning()) {
return 1;
}
return lhs.app.getAppName().compareTo(rhs.app.getAppName());
}
});