Don't remove new settings during migration if already present
This commit is contained in:
parent
7adcb7771b
commit
14ed8c7ce3
|
@ -63,6 +63,7 @@ class Preferences(private val context: Context) {
|
|||
val fromOldSettings = oldPreferences.getStringSetCompat(key)
|
||||
if (fromOldSettings != null) {
|
||||
var newSettings: MutableSet<String> = mutableSetOf<String>()
|
||||
newSettings.addAll(preferences.getStringSetCompat(key).orEmpty())
|
||||
for (oldBackend in fromOldSettings) {
|
||||
// Get package name and sha1
|
||||
val parts = oldBackend.split("/".toRegex()).dropLastWhile(String::isEmpty).toTypedArray()
|
||||
|
|
Loading…
Reference in New Issue