mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Fix: Restoring SponsorBlock preferences from backup
This commit is contained in:
parent
8e09823e8d
commit
7a00b6db2d
@ -90,8 +90,9 @@ object BackupHelper {
|
||||
is Float -> putFloat(key, value)
|
||||
is Long -> putLong(key, value)
|
||||
is Int -> {
|
||||
when (key) {
|
||||
PreferenceKeys.START_FRAGMENT -> putInt(key, value)
|
||||
when {
|
||||
// we only use integers for SponsorBlock colors and the start fragment
|
||||
key == PreferenceKeys.START_FRAGMENT || key.orEmpty().contains("_color") -> putInt(key, value)
|
||||
else -> putLong(key, value.toLong())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user