Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64d53e54 authored by George Lin's avatar George Lin
Browse files

Fix crash of resource not found

Do not use -1 as res Id

Test: Manually tested no crash
Fixes: 290183862
Change-Id: Iadbdec303acd4fcb5e244ffa2292cc4c9112253d
parent ed7db295
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -16,10 +16,11 @@
package com.android.customization.picker.clock.utils
package com.android.customization.picker.clock.utils


import androidx.annotation.StringRes
import androidx.annotation.StringRes
import com.android.wallpaper.R


class ThemePickerClockDescriptionUtils : ClockDescriptionUtils {
class ThemePickerClockDescriptionUtils : ClockDescriptionUtils {
    @StringRes
    @StringRes
    override fun getDescriptionResId(clockId: String): Int {
    override fun getDescriptionResId(clockId: String): Int {
        return -1
        return R.string.clock_title
    }
    }
}
}