We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 549589a commit 72ca0baCopy full SHA for 72ca0ba
1 file changed
app/src/main/java/com/android/support/Menu.kt
@@ -307,6 +307,7 @@ class Menu(val context: Activity) {
307
valueChange(featIdx, featName, if (value) 1 else 0)
308
}
309
310
+ @Suppress("UNCHECKED_CAST")
311
fun <T> read(key: String, defaultValue: T): T {
312
return when (defaultValue) {
313
is String -> sharedPreferences.getString(key, defaultValue)
0 commit comments