diff options
author | Alan Newberger <alann@google.com> | 2015-02-26 15:24:30 -0800 |
---|---|---|
committer | Alan Newberger <alann@google.com> | 2015-02-26 16:04:57 -0800 |
commit | d2710487e724660cbb890ebf5eb887b4a93281c1 (patch) | |
tree | ee09e343ee004257b116bcc1277ded43eaf110df /src/com/android/camera/ui | |
parent | 9d31043682f3ed17bce71145e02eb015561a04df (diff) | |
download | android_packages_apps_Camera2-d2710487e724660cbb890ebf5eb887b4a93281c1.tar.gz android_packages_apps_Camera2-d2710487e724660cbb890ebf5eb887b4a93281c1.tar.bz2 android_packages_apps_Camera2-d2710487e724660cbb890ebf5eb887b4a93281c1.zip |
Remove accordion
No more accordion animation.
Bug: 19535309
Change-Id: I001315e03b63de1ed228d371c849f30f5af2f17d
Diffstat (limited to 'src/com/android/camera/ui')
-rw-r--r-- | src/com/android/camera/ui/ModeListView.java | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/com/android/camera/ui/ModeListView.java b/src/com/android/camera/ui/ModeListView.java index d85a68fee..b1364d8be 100644 --- a/src/com/android/camera/ui/ModeListView.java +++ b/src/com/android/camera/ui/ModeListView.java @@ -1581,26 +1581,11 @@ public class ModeListView extends FrameLayout insertNewPosition(newPosition, mCurrentTime); for (int i = 0; i < mModeSelectorItems.length; i++) { - mModeSelectorItems[i].setVisibleWidth(calculateVisibleWidthForItem(i, - (int) newPosition)); + mModeSelectorItems[i].setVisibleWidth((int) newPosition); } } /** - * Calculate the width of a specified item based on its position relative to - * the item with longest width. - */ - private int calculateVisibleWidthForItem(int itemId, int longestWidth) { - if (itemId == mFocusItem || mFocusItem == NO_ITEM_SELECTED) { - return longestWidth; - } - - int delay = Math.abs(itemId - mFocusItem) * DELAY_MS; - return (int) getPosition(mCurrentTime - delay, - mModeSelectorItems[itemId].getVisibleWidth()); - } - - /** * Insert new position and time stamp into the history position list, and * remove stale position items. * @@ -1857,7 +1842,6 @@ public class ModeListView extends FrameLayout "visibleWidth", width); } animator.setDuration(duration); - animator.setStartDelay(i * delay); animators.add(animator); } @@ -1881,7 +1865,6 @@ public class ModeListView extends FrameLayout } ArrayList<Animator> animators = new ArrayList<Animator>(); - int focusItem = mFocusItem == NO_ITEM_SELECTED ? 0 : mFocusItem; for (int i = 0; i < mTotalModes; i++) { ObjectAnimator animator = ObjectAnimator.ofInt(mModeSelectorItems[i], "visibleWidth", width); |