Fix to work statusbar configs as mcc/mnc

Call handleConfigurationChanged() at the end of
PhoneStatusBar#onConfigurationChanged to update statusbar configs.

BUG: 22215928
Change-Id: I7329d4949a8a47717ea037cf007ef0baa63507bd
This commit is contained in:
Sungmin Choi
2015-07-07 13:06:59 +09:00
committed by Jason Monk
parent a559590043
commit 6be4f6b18d
2 changed files with 3 additions and 3 deletions

View File

@ -2914,6 +2914,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
updateRowStates();
mIconController.updateResources();
mScreenPinningRequest.onConfigurationChanged();
mNetworkController.handleConfigurationChanged();
}
@Override

View File

@ -340,7 +340,6 @@ public class NetworkControllerImpl extends BroadcastReceiver
action.equals(ConnectivityManager.INET_CONDITION_ACTION)) {
updateConnectivity();
} else if (action.equals(Intent.ACTION_CONFIGURATION_CHANGED)) {
mConfig = Config.readConfig(mContext);
handleConfigurationChanged();
} else if (action.equals(Intent.ACTION_AIRPLANE_MODE_CHANGED)) {
refreshLocale();
@ -374,8 +373,8 @@ public class NetworkControllerImpl extends BroadcastReceiver
}
}
@VisibleForTesting
void handleConfigurationChanged() {
public void handleConfigurationChanged() {
mConfig = Config.readConfig(mContext);
for (MobileSignalController mobileSignalController : mMobileSignalControllers.values()) {
mobileSignalController.setConfiguration(mConfig);
}