content: package androidx.appcompat.widget;
  
  import android.content.Context;
  import android.content.res.TypedArray;
  import android.text.Layout;
  import android.util.AttributeSet;
  import androidx.appcompat.R;
  
  public class DialogTitle extends AppCompatTextView {
      public DialogTitle(Context context) {
          super(context);
      }
  
      public DialogTitle(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
      public DialogTitle(Context context, AttributeSet attrs, int defStyleAttr) {
          super(context, attrs, defStyleAttr);
      }
  
      /* access modifiers changed from: protected */
      public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
          int lineCount;
          super.onMeasure(widthMeasureSpec, heightMeasureSpec);
          Layout layout = getLayout();
          if (layout != null && (lineCount = layout.getLineCount()) > 0 && layout.getEllipsisCount(lineCount - 1) > 0) {
              setSingleLine(false);
              setMaxLines(2);
              TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes((AttributeSet) null, R.styleable.TextAppearance, 16842817, 16973892);
              int dimensionPixelSize = obtainStyledAttributes.getDimensionPixelSize(R.styleable.TextAppearance_android_textSize, 0);
              if (dimensionPixelSize != 0) {
                  setTextSize(0, (float) dimensionPixelSize);
              }
              obtainStyledAttributes.recycle();
              super.onMeasure(widthMeasureSpec, heightMeasureSpec);
          }
      }
  }
  