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

Commit 5b61bea7 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 24581 into eclair

* changes:
  Dialog titles would sometimes use a font too large.
parents bcbcaa7e 4bdf17c6
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -58,14 +58,15 @@ public class DialogTitle extends TextView {
                            android.R.style.TextAppearance_Medium,
                            android.R.styleable.TextAppearance);
                    final int textSize = a.getDimensionPixelSize(
                            android.R.styleable.TextAppearance_textSize, 20);
                            android.R.styleable.TextAppearance_textSize,
                            (int) (20 * getResources().getDisplayMetrics().density));

                    setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize);
                    // textSize is already expressed in pixels
                    setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
                    setMaxLines(2);
                    super.onMeasure(widthMeasureSpec, heightMeasureSpec);      
                }
            }
        }
    }
   
}