AuroraListPreference: Handle when value is null in persistString method

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-10-30 20:05:45 +05:30
parent e94882cec2
commit bda8dc81d5

View File

@@ -55,6 +55,6 @@ class AuroraListPreference : ListPreference {
}
override fun persistString(value: String?): Boolean {
return persistInt(Integer.valueOf(value))
return if (value != null) persistInt(Integer.valueOf(value)) else false
}
}
}