forked from suyu/suyu
Merge pull request #12092 from t895/recent-games-default
android: Select recently played games by default in search tab
This commit is contained in:
commit
1ea0890a36
2 changed files with 3 additions and 2 deletions
|
@ -18,8 +18,8 @@ class Game(
|
||||||
val version: String = "",
|
val version: String = "",
|
||||||
val isHomebrew: Boolean = false
|
val isHomebrew: Boolean = false
|
||||||
) : Parcelable {
|
) : Parcelable {
|
||||||
val keyAddedToLibraryTime get() = "${programId}_AddedToLibraryTime"
|
val keyAddedToLibraryTime get() = "${path}_AddedToLibraryTime"
|
||||||
val keyLastPlayedTime get() = "${programId}_LastPlayed"
|
val keyLastPlayedTime get() = "${path}_LastPlayed"
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
if (other !is Game) {
|
if (other !is Game) {
|
||||||
|
|
|
@ -127,6 +127,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:paddingVertical="4dp"
|
android:paddingVertical="4dp"
|
||||||
|
app:checkedChip="@id/chip_recently_played"
|
||||||
app:chipSpacingHorizontal="12dp"
|
app:chipSpacingHorizontal="12dp"
|
||||||
app:singleLine="true"
|
app:singleLine="true"
|
||||||
app:singleSelection="true">
|
app:singleSelection="true">
|
||||||
|
|
Loading…
Reference in a new issue