Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 045b6fa6 authored by Yorke Lee's avatar Yorke Lee
Browse files

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
parent d0e728d9
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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);
    }