summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-02-20 01:15:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-20 01:15:39 +0000
commitcced281d8268e94c2ebcb66f0819fb6c4dc28dc1 (patch)
tree5256001b8dac41bb5b675f7c1d4ba6691a214f42
parent65e4bfa0d5af9aeeaaa36e57688362edf7733f7b (diff)
parent594b864c336dd5cf1dfcbaff2c979201dcd6985e (diff)
Merge "Postpone enabling of layout transition"
-rw-r--r--src/com/android/dialer/list/ListsFragment.java10
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() {