mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-02 07:45:40 +00:00
Revert "Display the running app first on the app grid"
This reverts commit 36f8cc02cb213a7ef4b5a7d3c246b0196e9b663c.
This commit is contained in:
parent
60d3d8b3ae
commit
2dcf5486da
@ -66,14 +66,6 @@ public class AppGridAdapter extends GenericGridAdapter<AppView.AppObject> {
|
|||||||
Collections.sort(itemList, new Comparator<AppView.AppObject>() {
|
Collections.sort(itemList, new Comparator<AppView.AppObject>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(AppView.AppObject lhs, AppView.AppObject rhs) {
|
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());
|
return lhs.app.getAppName().compareTo(rhs.app.getAppName());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user