author | Michael Comella <michael.l.comella@gmail.com> |
Tue, 20 Nov 2012 20:28:34 -0500 | |
changeset 113856 | 33493f12809d82cc8488a9a75619f03e750b5c0c |
parent 113855 | 029200e24d663be2665a38d8f416818b993603c8 |
child 113857 | 296a47893d907bb3e1af16fe4b1155379826d89f |
push id | 23891 |
push user | emorley@mozilla.com |
push date | Wed, 21 Nov 2012 15:30:36 +0000 |
treeherder | mozilla-central@905492e644e3 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bnicholson |
bugs | 788106 |
milestone | 20.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/mobile/android/base/FontSizePreference.java +++ b/mobile/android/base/FontSizePreference.java @@ -87,17 +87,17 @@ class FontSizePreference extends DialogP if (mPreviewFontIndex == 0) { mDecreaseFontButton.setEnabled(false); } } }); mIncreaseFontButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { updatePreviewFontSize(mFontTwipValues[++mPreviewFontIndex]); - + mDecreaseFontButton.setEnabled(true); // If we reached the maximum index, disable the button. if (mPreviewFontIndex == mFontTwipValues.length - 1) { mIncreaseFontButton.setEnabled(false); } } }); } @@ -177,11 +177,11 @@ class FontSizePreference extends DialogP /** * Returns the name of the font size (ex: "Small") at the currently saved preference value. */ protected String getSavedFontSizeName() { return mFontSizeNames[mSavedFontIndex]; } private float convertTwipStrToPT(String twip) { - return Float.parseFloat(twip) / TWIP_TO_PT_RATIO; + return Float.parseFloat(twip) / TWIP_TO_PT_RATIO; } }