am c1125ded: Merge "Disable ActionBar animations pending more involved fix" into mnc-dev
* commit 'c1125dedfcb52644aabc175d749c89b3008e4337': Disable ActionBar animations pending more involved fix
This commit is contained in:
@@ -61,6 +61,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter
|
|||||||
implements ActionProvider.SubUiVisibilityListener {
|
implements ActionProvider.SubUiVisibilityListener {
|
||||||
private static final String TAG = "ActionMenuPresenter";
|
private static final String TAG = "ActionMenuPresenter";
|
||||||
private static final int ITEM_ANIMATION_DURATION = 150;
|
private static final int ITEM_ANIMATION_DURATION = 150;
|
||||||
|
private static final boolean ACTIONBAR_ANIMATIONS_ENABLED = false;
|
||||||
|
|
||||||
private OverflowMenuButton mOverflowButton;
|
private OverflowMenuButton mOverflowButton;
|
||||||
private boolean mReserveOverflow;
|
private boolean mReserveOverflow;
|
||||||
@@ -414,7 +415,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter
|
|||||||
@Override
|
@Override
|
||||||
public void updateMenuView(boolean cleared) {
|
public void updateMenuView(boolean cleared) {
|
||||||
final ViewGroup menuViewParent = (ViewGroup) ((View) mMenuView).getParent();
|
final ViewGroup menuViewParent = (ViewGroup) ((View) mMenuView).getParent();
|
||||||
if (menuViewParent != null) {
|
if (menuViewParent != null && ACTIONBAR_ANIMATIONS_ENABLED) {
|
||||||
setupItemAnimations();
|
setupItemAnimations();
|
||||||
}
|
}
|
||||||
super.updateMenuView(cleared);
|
super.updateMenuView(cleared);
|
||||||
|
|||||||
Reference in New Issue
Block a user