Skip to content

Commit 1cc2bce

Browse files
author
Dianne Hackborn
committed
Fix issue #6444627: New status bar/action bar interaction a bit disjoint
Make sure action bar animations use same duration as system dock animations. Change-Id: Ie294d134177207499a05cc93db8f4b859f07ed0c
1 parent b05b158 commit 1cc2bce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/java/com/android/internal/app/ActionBarImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,8 @@ public void show(boolean markHiddenBeforeMode, boolean alwaysAnimate) {
617617
}
618618
anim.setInterpolator(AnimationUtils.loadInterpolator(mContext,
619619
com.android.internal.R.interpolator.decelerate_quad));
620+
anim.setDuration(mContext.getResources().getInteger(
621+
com.android.internal.R.integer.config_mediumAnimTime));
620622
anim.addListener(mShowListener);
621623
mCurrentShowAnim = anim;
622624
anim.start();
@@ -660,6 +662,8 @@ public void hide(boolean alwaysAnimate) {
660662
}
661663
anim.setInterpolator(AnimationUtils.loadInterpolator(mContext,
662664
com.android.internal.R.interpolator.accelerate_quad));
665+
anim.setDuration(mContext.getResources().getInteger(
666+
com.android.internal.R.integer.config_mediumAnimTime));
663667
anim.addListener(mHideListener);
664668
mCurrentShowAnim = anim;
665669
anim.start();

0 commit comments

Comments
 (0)