diff options
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 8 |
1 files changed, 2 insertions, 6 deletions
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 |