File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/main/java/android/content Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,13 @@ open class Context {
56
56
}
57
57
58
58
override fun getString (key : String , defaultValue : String? ): String? {
59
- when (key) {
60
- " |T|app.teamhub.core|*" -> return null
61
- " |T|dev.teamhub.core|*" -> return null
62
- " last-used-date" -> return FirebasePlatform .firebasePlatform.retrieve(key) ? : defaultValue
63
- else -> if (key.startsWith(" com.google.firebase.auth.FIREBASE_USER" )) {
64
- return FirebasePlatform .firebasePlatform.retrieve(key) ? : defaultValue
65
- }
59
+ return when {
60
+ key == " last-used-date" -> FirebasePlatform .firebasePlatform.retrieve(key) ? : defaultValue
61
+ key.startsWith(" |T|" ) -> null
62
+ key.startsWith(" com.google.firebase.auth.FIREBASE_USER" ) ->
63
+ FirebasePlatform .firebasePlatform.retrieve(key) ? : defaultValue
64
+ else -> throw IllegalArgumentException (key)
66
65
}
67
- throw IllegalArgumentException (key)
68
66
}
69
67
70
68
override fun getLong (key : String? , defaultValue : Long ): Long {
You can’t perform that action at this time.
0 commit comments