upd migration
This commit is contained in:
parent
37c4d284fa
commit
f324f5621c
|
|
@ -5,5 +5,6 @@ import android.content.SharedPreferences
|
|||
fun TouchinSharedPreferences.migrateFromSharedPreferences(from: SharedPreferences, key: String): SharedPreferences {
|
||||
if (!from.contains(key)) return this
|
||||
edit().putString(key, from.getString(key, "") ?: "").apply()
|
||||
from.edit().remove(key).apply()
|
||||
return this
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue