Add preference to disable charging animation

Close #456
This commit is contained in:
MM20
2023-08-26 23:04:47 +02:00
parent f079974c10
commit d1371b224d
8 changed files with 52 additions and 1 deletions
@@ -185,6 +185,10 @@ fun createFactorySettings(context: Context): Settings {
.setOrdering(Settings.SearchResultOrderingSettings.Ordering.Weighted)
.setWeightFactor(Settings.SearchResultOrderingSettings.WeightFactor.Default)
)
.setAnimations(
Settings.AnimationSettings.newBuilder()
.setCharging(true)
)
.build()
}
@@ -15,5 +15,9 @@ class Migration_16_17: VersionedMigration(16, 17) {
}.toString()
)
)
.setAnimations(
builder.animations.toBuilder()
.setCharging(true)
)
}
}
@@ -367,4 +367,9 @@ message Settings {
bool widget_tags_multiline = 2;
}
UiState ui = 30;
message AnimationSettings {
bool charging = 1;
}
AnimationSettings animations = 31;
}