content: package com.google.android.material.internal;
  
  import android.animation.Animator;
  import android.animation.ValueAnimator;
  import android.view.ViewGroup;
  import android.widget.TextView;
  import androidx.transition.Transition;
  import androidx.transition.TransitionValues;
  import java.util.Map;
  
  public class TextScale extends Transition {
      private static final String PROPNAME_SCALE = "android:textscale:scale";
  
      private void captureValues(TransitionValues transitionValues) {
          if (transitionValues.view instanceof TextView) {
              transitionValues.values.put(PROPNAME_SCALE, Float.valueOf(((TextView) transitionValues.view).getScaleX()));
          }
      }
  
      public void captureEndValues(TransitionValues transitionValues) {
          captureValues(transitionValues);
      }
  
      public void captureStartValues(TransitionValues transitionValues) {
          captureValues(transitionValues);
      }
  
      public Animator createAnimator(ViewGroup sceneRoot, TransitionValues startValues, TransitionValues endValues) {
          if (startValues == null || endValues == null || !(startValues.view instanceof TextView) || !(endValues.view instanceof TextView)) {
              return null;
          }
          final TextView textView = (TextView) endValues.view;
          Map<String, Object> map = startValues.values;
          Map<String, Object> map2 = endValues.values;
          float f = 1.0f;
          float floatValue = map.get(PROPNAME_SCALE) != null ? ((Float) map.get(PROPNAME_SCALE)).floatValue() : 1.0f;
          if (map2.get(PROPNAME_SCALE) != null) {
              f = ((Float) map2.get(PROPNAME_SCALE)).floatValue();
          }
          float f2 = f;
          if (floatValue == f2) {
              return null;
          }
          ValueAnimator ofFloat = ValueAnimator.ofFloat(new float[]{floatValue, f2});
          ofFloat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
              public void onAnimationUpdate(ValueAnimator valueAnimator) {
                  float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
                  textView.setScaleX(floatValue);
                  textView.setScaleY(floatValue);
              }
          });
          return ofFloat;
      }
  }
  