From 23c1f7c72f950c8b937576275b3aa10cb9a7e835 Mon Sep 17 00:00:00 2001 From: t895 Date: Sun, 19 Nov 2023 15:57:05 -0500 Subject: android: Select recently played games by default in search tab --- src/android/app/src/main/res/layout/fragment_search.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/android') diff --git a/src/android/app/src/main/res/layout/fragment_search.xml b/src/android/app/src/main/res/layout/fragment_search.xml index b8d54d947..efdfd7047 100644 --- a/src/android/app/src/main/res/layout/fragment_search.xml +++ b/src/android/app/src/main/res/layout/fragment_search.xml @@ -127,6 +127,7 @@ android:layout_height="wrap_content" android:clipToPadding="false" android:paddingVertical="4dp" + app:checkedChip="@id/chip_recently_played" app:chipSpacingHorizontal="12dp" app:singleLine="true" app:singleSelection="true"> -- cgit v1.2.3 From 8e93a9a9ef2ffc6325060be5b5a977d7f93de531 Mon Sep 17 00:00:00 2001 From: t895 Date: Sun, 19 Nov 2023 16:00:41 -0500 Subject: android: Use path instead of programId for recently added / played key --- src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/android') diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt index de84b2adb..2fa3ab31b 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt @@ -18,8 +18,8 @@ class Game( val version: String = "", val isHomebrew: Boolean = false ) : Parcelable { - val keyAddedToLibraryTime get() = "${programId}_AddedToLibraryTime" - val keyLastPlayedTime get() = "${programId}_LastPlayed" + val keyAddedToLibraryTime get() = "${path}_AddedToLibraryTime" + val keyLastPlayedTime get() = "${path}_LastPlayed" override fun equals(other: Any?): Boolean { if (other !is Game) { -- cgit v1.2.3