summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-10 14:04:53 -0700
committerYorke Lee <yorkelee@google.com>2015-07-10 14:04:53 -0700
commit045b6fa6e0472281ec0b2c53df1f9b11dacfec06 (patch)
tree59d392ccd3909bd20a6a65223914ca62fca1db60
parentd0e728d93273181d8dba32ecacdee88d7c86e8c7 (diff)
Disable LayoutTransition.CHANGING
It is not really useful and is distracting when a lot of information changes happen at once. Other animations (like fading in of elapsed call time) will still continue to work. Bug: 22274741 Change-Id: I303f776a6873dab3d07569a2518fda039d64becf
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index d58310cfc..4121390fd 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -19,7 +19,6 @@ package com.android.incallui;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
-import android.animation.LayoutTransition;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
@@ -282,9 +281,6 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
mPrimaryName.setElegantTextHeight(false);
mCallStateLabel.setElegantTextHeight(false);
-
- final LayoutTransition transition = mPrimaryCallInfo.getLayoutTransition();
- transition.enableTransitionType(LayoutTransition.CHANGING);
}
@Override
@@ -984,9 +980,6 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
final ViewTreeObserver observer = getView().getViewTreeObserver();
- final LayoutTransition transition = mPrimaryCallInfo.getLayoutTransition();
- transition.disableTransitionType(LayoutTransition.CHANGING);
-
mIsAnimating = true;
observer.addOnGlobalLayoutListener(new OnGlobalLayoutListener() {
@@ -1157,9 +1150,6 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
mPrimaryCallCardContainer.removeOnLayoutChangeListener(layoutChangeListener);
- final LayoutTransition transition = mPrimaryCallInfo.getLayoutTransition();
- transition.enableTransitionType(LayoutTransition.CHANGING);
-
mFloatingActionButtonController.scaleIn(AnimUtils.NO_DELAY);
}