Fix another NPE.

Bug: 5122306
Change-Id: I6877528325d30bb725f8692c86a8752263b5344e
This commit is contained in:
Daniel Sandler
2011-08-04 15:57:39 -04:00
parent b7ef4cb254
commit f48fd822e0

View File

@ -1873,7 +1873,7 @@ public class PhoneStatusBar extends StatusBar {
}
void updateExpandedSize() {
if (mExpandedDialog != null && mExpandedParams != null) {
if (mExpandedDialog != null && mExpandedParams != null && mDisplaySize != null) {
mExpandedParams.width = mDisplaySize.x;
mExpandedParams.height = getExpandedHeight(mDisplaySize.y);
if (!mExpandedVisible) {