mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Fix various compiler warnings.
This commit is contained in:
@@ -310,7 +310,7 @@ internal class AccountValues internal constructor(store: KeyValueStore) : Signal
|
||||
}
|
||||
|
||||
if (previous && !registered) {
|
||||
clearLocalCredentials(ApplicationDependencies.getApplication())
|
||||
clearLocalCredentials()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ internal class AccountValues internal constructor(store: KeyValueStore) : Signal
|
||||
val isLinkedDevice: Boolean
|
||||
get() = !isPrimaryDevice
|
||||
|
||||
private fun clearLocalCredentials(context: Context) {
|
||||
private fun clearLocalCredentials() {
|
||||
putString(KEY_SERVICE_PASSWORD, Util.getSecret(18))
|
||||
|
||||
val newProfileKey = ProfileKeyUtil.createNew()
|
||||
|
||||
@@ -70,6 +70,7 @@ private class BooleanValue(private val key: String, private val default: Boolean
|
||||
|
||||
private class StringValue<T : String?>(private val key: String, private val default: T, store: KeyValueStore) : SignalStoreValueDelegate<T>(store) {
|
||||
override fun getValue(values: KeyValueStore): T {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return values.getString(key, default) as T
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user