fix: comment bar not visible (solution is so cursed)

This commit is contained in:
rebelonion 2024-03-15 20:57:36 -05:00
parent cf93f6d657
commit 34a9a55d4f
13 changed files with 363 additions and 294 deletions

View file

@ -7,6 +7,7 @@ import ani.dantotsu.settings.saving.internal.Compat
import ani.dantotsu.settings.saving.internal.Location
import ani.dantotsu.settings.saving.internal.PreferencePackager
import ani.dantotsu.snackString
import ani.dantotsu.util.Logger
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.ObjectInputStream
@ -374,6 +375,7 @@ object PrefManager {
pref.edit().putString(key, serialized).apply()
} catch (e: Exception) {
snackString("Error serializing preference: ${e.message}")
Logger.log(e)
}
}
@ -392,8 +394,7 @@ object PrefManager {
default
}
} catch (e: Exception) {
snackString("Error deserializing preference: ${e.message}")
e.printStackTrace()
Logger.log(e)
default
}
}