AuroraListPreference: Consider the defaultReturnValue in getPersistedString method
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -51,7 +51,7 @@ class AuroraListPreference : ListPreference {
|
||||
}
|
||||
|
||||
override fun getPersistedString(defaultReturnValue: String?): String? {
|
||||
return getPersistedInt(-1).toString()
|
||||
return getPersistedInt(defaultReturnValue?.toInt() ?: -1).toString()
|
||||
}
|
||||
|
||||
override fun persistString(value: String?): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user