mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-13 20:48:56 +01:00
Don't include "app state" preferences in backups
This commit is contained in:
@@ -250,7 +250,9 @@ class BackupCreator(
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
private fun Map<String, *>.toBackupPreferences(): List<BackupPreference> {
|
||||
return this.filterKeys { !Preference.isPrivate(it) }
|
||||
return this.filterKeys {
|
||||
!Preference.isPrivate(it) && !Preference.isAppState(it)
|
||||
}
|
||||
.mapNotNull { (key, value) ->
|
||||
when (value) {
|
||||
is Int -> BackupPreference(key, IntPreferenceValue(value))
|
||||
|
||||
Reference in New Issue
Block a user