app bar shadow blink fix
This commit is contained in:
parent
22c3611bfc
commit
c73574a017
3 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue