diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-20 19:35:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 19:35:14 +0100 |
commit | 627ba271ada91da09c88ff740c5b51ce46a1aece (patch) | |
tree | 4e058c6dd2d8aa760da8b162e8b29831ba46cee4 /src/android/app | |
parent | Merge pull request #12715 from t895/remove-addons (diff) | |
parent | android: Sort recently added/played games by time (diff) | |
download | yuzu-627ba271ada91da09c88ff740c5b51ce46a1aece.tar yuzu-627ba271ada91da09c88ff740c5b51ce46a1aece.tar.gz yuzu-627ba271ada91da09c88ff740c5b51ce46a1aece.tar.bz2 yuzu-627ba271ada91da09c88ff740c5b51ce46a1aece.tar.lz yuzu-627ba271ada91da09c88ff740c5b51ce46a1aece.tar.xz yuzu-627ba271ada91da09c88ff740c5b51ce46a1aece.tar.zst yuzu-627ba271ada91da09c88ff740c5b51ce46a1aece.zip |
Diffstat (limited to 'src/android/app')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt index 64b295fbd..20b10b1a0 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt @@ -136,14 +136,14 @@ class SearchFragment : Fragment() { baseList.filter { val lastPlayedTime = preferences.getLong(it.keyLastPlayedTime, 0L) lastPlayedTime > (System.currentTimeMillis() - 24 * 60 * 60 * 1000) - } + }.sortedByDescending { preferences.getLong(it.keyLastPlayedTime, 0L) } } R.id.chip_recently_added -> { baseList.filter { val addedTime = preferences.getLong(it.keyAddedToLibraryTime, 0L) addedTime > (System.currentTimeMillis() - 24 * 60 * 60 * 1000) - } + }.sortedByDescending { preferences.getLong(it.keyAddedToLibraryTime, 0L) } } R.id.chip_homebrew -> baseList.filter { it.isHomebrew } |