зеркало из https://github.com/mozilla/gecko-dev.git
Bug 776369 - Fix NullPointerException. r=bnicholson
This commit is contained in:
Родитель
c4c18a9031
Коммит
f6aa463f03
|
@ -136,10 +136,13 @@ class FontSizePreference extends DialogPreference {
|
|||
if (mCurrentOrientation != newConfig.orientation) {
|
||||
mCurrentOrientation = newConfig.orientation;
|
||||
|
||||
// Recalculate the mPreviewFontView dimensions since we have new screen dimensions.
|
||||
setPreviewFontViewWidth();
|
||||
mPreviewFontViewHeightSet = false;
|
||||
setFontSizeToMaximum(); // Expects onGlobalLayout() to be called.
|
||||
// mPreviewFontView will be null if the dialog has not yet been shown.
|
||||
if (mPreviewFontView != null) {
|
||||
// Recalculate the mPreviewFontView dimensions since we have new screen dimensions.
|
||||
setPreviewFontViewWidth();
|
||||
mPreviewFontViewHeightSet = false;
|
||||
setFontSizeToMaximum(); // Expects onGlobalLayout() to be called.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче