diff options
author | Joe Onorato <joeo@google.com> | 2011-01-30 12:12:05 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2011-01-30 12:17:27 -0800 |
commit | 99641836d88044cafd3cac78f1c055beef3161b0 (patch) | |
tree | 644f25d5bff645b9849e6a9b72dbbe3982982258 /packages/SystemUI/src/com/android/systemui/statusbar/policy | |
parent | 51990f9b0c7c0a22e1a3440c620ab97ebe4209c9 (diff) | |
download | frameworks_base-99641836d88044cafd3cac78f1c055beef3161b0.zip frameworks_base-99641836d88044cafd3cac78f1c055beef3161b0.tar.gz frameworks_base-99641836d88044cafd3cac78f1c055beef3161b0.tar.bz2 |
Update the network info when the configuration changes.
Bug: 3405559
Change-Id: I91a0e05f2e6d1c7766b89ba4f96d87ce07783318
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/policy')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java index d3f4703..a4c153f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java @@ -146,6 +146,7 @@ public class NetworkController extends BroadcastReceiver { filter.addAction(Telephony.Intents.SPN_STRINGS_UPDATED_ACTION); filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); filter.addAction(ConnectivityManager.INET_CONDITION_ACTION); + filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); context.registerReceiver(this, filter); // yuck @@ -197,6 +198,8 @@ public class NetworkController extends BroadcastReceiver { action.equals(ConnectivityManager.INET_CONDITION_ACTION)) { updateConnectivity(intent); refreshViews(); + } else if (action.equals(Intent.ACTION_CONFIGURATION_CHANGED)) { + refreshViews(); } } |