Revert animation in activity transitions
This commit is contained in:
parent
49b04de5b3
commit
d0c1acd685
2 changed files with 2 additions and 19 deletions
|
@ -86,14 +86,6 @@
|
|||
<item name="android:windowBackground">@drawable/first_splash_screen_free_dev</item>
|
||||
</style>
|
||||
|
||||
<style name="OsmandLightTheme.NoAnimation" parent="OsmandLightTheme">
|
||||
<item name="android:windowAnimationStyle">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="OsmandDarkTheme.NoAnimation" parent="OsmandDarkTheme">
|
||||
<item name="android:windowAnimationStyle">@null</item>
|
||||
</style>
|
||||
|
||||
<!-- Osmand themes styles -->
|
||||
<style name="OsmandLightTheme" parent="Theme.AppCompat.Light">
|
||||
<item name="mapBackground">@color/map_background_color_light</item>
|
||||
|
|
|
@ -694,19 +694,10 @@ public class OsmandApplication extends MultiDexApplication {
|
|||
|
||||
public void applyTheme(Context c) {
|
||||
int t = R.style.OsmandDarkTheme;
|
||||
boolean doNotUseAnimations = osmandSettings.DO_NOT_USE_ANIMATIONS.get();
|
||||
if (osmandSettings.OSMAND_THEME.get() == OsmandSettings.OSMAND_DARK_THEME) {
|
||||
if (doNotUseAnimations) {
|
||||
t = R.style.OsmandDarkTheme_NoAnimation;
|
||||
} else {
|
||||
t = R.style.OsmandDarkTheme;
|
||||
}
|
||||
t = R.style.OsmandDarkTheme;
|
||||
} else if (osmandSettings.OSMAND_THEME.get() == OsmandSettings.OSMAND_LIGHT_THEME) {
|
||||
if (doNotUseAnimations) {
|
||||
t = R.style.OsmandLightTheme_NoAnimation;
|
||||
} else {
|
||||
t = R.style.OsmandLightTheme;
|
||||
}
|
||||
t = R.style.OsmandLightTheme;
|
||||
}
|
||||
setLanguage(c);
|
||||
c.setTheme(t);
|
||||
|
|
Loading…
Reference in a new issue