diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java index d0ed8f7515..c6675831b6 100644 --- a/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java @@ -14,6 +14,7 @@ import android.text.style.StyleSpan; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.view.animation.Animation; import android.widget.CompoundButton; import android.widget.ImageView; import android.widget.TextView; @@ -373,6 +374,15 @@ public abstract class BaseSettingsFragment extends PreferenceFragmentCompat impl } } + @Nullable + @Override + public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) { + Animation anim = new Animation() { + }; + anim.setDuration(0); + return anim; + } + @Override public void onAppModeChanged(ApplicationMode appMode) { this.appMode = appMode; diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuItemsFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuItemsFragment.java index f4ed5187ca..347514ac18 100644 --- a/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuItemsFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuItemsFragment.java @@ -106,6 +106,7 @@ public class ConfigureMenuItemsFragment extends BaseOsmAndFragment ConfigureMenuItemsFragment fragment = new ConfigureMenuItemsFragment(); fragment.setScreenType(type); fragment.setAppMode(appMode); + fragment.disableTransitionAnimation(); fm.beginTransaction() .replace(R.id.fragmentContainer, fragment, TAG) .addToBackStack(CONFIGURE_MENU_ITEMS_TAG) diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuRootFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuRootFragment.java index 330f1c0a18..6307cd065d 100644 --- a/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuRootFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureMenuRootFragment.java @@ -74,6 +74,7 @@ public class ConfigureMenuRootFragment extends BaseOsmAndFragment { ConfigureMenuRootFragment fragment = new ConfigureMenuRootFragment(); fragment.setAppMode(appMode); fragment.setTargetFragment(target, 0); + fragment.disableTransitionAnimation(); fragmentManager.beginTransaction() .replace(R.id.fragmentContainer, fragment, TAG) .addToBackStack(null)