From 00a3d5d576d53b43a46849bf40c43bccde44a9b2 Mon Sep 17 00:00:00 2001 From: Sai Cheemalapati Date: Fri, 13 Jun 2014 10:22:26 -0700 Subject: Fixes issue with FAB alginment. FAB now aligns correctly when selecting tabs. Change-Id: I94aefb9194a60c47504f238eedbebd466f9bd52d --- src/com/android/dialer/DialtactsActivity.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/com/android/dialer/DialtactsActivity.java') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index a9eb21779..19af4ef91 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -1137,18 +1137,14 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O // tab. if (position == ListsFragment.TAB_INDEX_SPEED_DIAL && !mIsLandscape) { mFloatingActionButtonController.onPageScrolled(positionOffset); + } else if (position != ListsFragment.TAB_INDEX_SPEED_DIAL) { + mFloatingActionButtonController.onPageScrolled(1); } } @Override public void onPageSelected(int position) { mCurrentTabPosition = position; - // Prevents jittery movement when clicking on tabs. - if (mCurrentTabPosition != ListsFragment.TAB_INDEX_SPEED_DIAL) { - mFloatingActionButtonController.manuallyTranslate( - mFloatingActionButtonController.getTranslationXForAlignment( - FloatingActionButtonController.ALIGN_RIGHT), 0); - } } @Override -- cgit v1.2.3