Browse Source
Merge pull request #12092 from t895/recent-games-default
android: Select recently played games by default in search tab
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
-
src/android/app/src/main/res/layout/fragment_search.xml
|
|
|
@ -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) { |
|
|
|
|
|
|
|
@ -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"> |
|
|
|
|