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 Float -> putFloat(key, value)
|
||||||
is Long -> putLong(key, value)
|
is Long -> putLong(key, value)
|
||||||
is Int -> {
|
is Int -> {
|
||||||
when (key) {
|
when {
|
||||||
PreferenceKeys.START_FRAGMENT -> putInt(key, value)
|
// 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())
|
else -> putLong(key, value.toLong())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user