Commit b86e971f authored by tedchoc's avatar tedchoc Committed by Commit bot

Disable alpha, translate animations in the app menu for ICS.

The performance is horrendous, so let's disable the animations for each of the
menu items for now as it looks 90% as good as a well performing animation on
newer builds of android.

BUG=428477

Review URL: https://codereview.chromium.org/948183003

Cr-Commit-Position: refs/heads/master@{#317692}
parent 38ad7351
......@@ -10,6 +10,7 @@ import android.content.Context;
import android.content.res.Resources;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.Menu;
......@@ -171,7 +172,8 @@ public class AppMenu implements OnItemClickListener, OnKeyListener {
}
// Don't animate the menu items for low end devices.
if (!SysUtils.isLowEndDevice()) {
if (!SysUtils.isLowEndDevice()
&& Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
mPopup.getListView().addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
@Override
public void onLayoutChange(View v, int left, int top, int right, int bottom,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment