Revert animation in activity transitions

This commit is contained in:
PavelRatushny 2017-08-29 12:17:03 +03:00
parent 49b04de5b3
commit d0c1acd685
2 changed files with 2 additions and 19 deletions

View file

@ -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>

View file

@ -694,20 +694,11 @@ 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;
}
} else if (osmandSettings.OSMAND_THEME.get() == OsmandSettings.OSMAND_LIGHT_THEME) {
if (doNotUseAnimations) {
t = R.style.OsmandLightTheme_NoAnimation;
} else {
t = R.style.OsmandLightTheme;
}
}
setLanguage(c);
c.setTheme(t);
}