diff options
author | Yorke Lee <yorkelee@google.com> | 2015-02-19 17:10:54 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-02-19 17:10:54 -0800 |
commit | 594b864c336dd5cf1dfcbaff2c979201dcd6985e (patch) | |
tree | 5e4737094ad4a6a0b2509a7781905e56c367946d /src/com/android/dialer/list/ListsFragment.java | |
parent | e65f03182eb76fabe8337a82fc3eef7230b669a1 (diff) |
Postpone enabling of layout transition
Enable layout transition only when call shortcut is dismissed,
to prevent the layout from sliding down at startup.
Change-Id: Id218b5e3eb89b5df5aee30f35c036d2860541294
Diffstat (limited to 'src/com/android/dialer/list/ListsFragment.java')
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index b303d0011..9ae5c57f5 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -356,6 +356,11 @@ public class ListsFragment extends Fragment implements CallLogQueryHandler.Liste prefs.edit().putLong(KEY_LAST_DISMISSED_CALL_SHORTCUT_DATE, mLastCallShortcutDate) .apply(); fetchCalls(); + + LayoutTransition transition = mOverlappingPaneLayout.getLayoutTransition(); + // Turns on animations for all types of layout changes so that they occur for + // height changes. + transition.enableTransitionType(LayoutTransition.CHANGING); } public void addOnPageChangeListener(OnPageChangeListener onPageChangeListener) { @@ -420,11 +425,6 @@ public class ListsFragment extends Fragment implements CallLogQueryHandler.Liste paneLayout.setPanelSlideCallbacks(mPanelSlideCallbacks); paneLayout.setIntermediatePinnedOffset( ((HostInterface) getActivity()).getActionBarController().getActionBarHeight()); - - LayoutTransition transition = paneLayout.getLayoutTransition(); - // Turns on animations for all types of layout changes so that they occur for - // height changes. - transition.enableTransitionType(LayoutTransition.CHANGING); } public SpeedDialFragment getSpeedDialFragment() { |