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
commit63e8d56846f0082b667ddfb55cdf5bb5e59983c0 (patch)
tree11aad5fa536c66ac88f13652a32fb456eddf9b5f
parent6a3ec9377f29a2afd2cf3ffd662537835b127a2e (diff)
downloadInCallUI-63e8d56846f0082b667ddfb55cdf5bb5e59983c0.tar.gz
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--src/com/android/incallui/CallCardFragment.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/android/incallui/CallCardFragment.java b/src/com/android/incallui/CallCardFragment.java
index d58310cf..4121390f 100644
--- a/src/com/android/incallui/CallCardFragment.java
+++ b/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);
}