diff options
author | nadlabak <pavel@doshaska.net> | 2010-11-19 12:43:48 -0800 |
---|---|---|
committer | nadlabak <pavel@doshaska.net> | 2010-11-19 12:43:48 -0800 |
commit | 99cd4681672d8520a4f50d6644f856beb65184ed (patch) | |
tree | a6996c449e1401e542c14efa1c9661d7118ff680 /services/java/com/android/server | |
parent | 6b9e6fe39ca57bcc4b8071fda233f45a713c32e9 (diff) | |
download | frameworks_base-99cd4681672d8520a4f50d6644f856beb65184ed.zip frameworks_base-99cd4681672d8520a4f50d6644f856beb65184ed.tar.gz frameworks_base-99cd4681672d8520a4f50d6644f856beb65184ed.tar.bz2 |
Fix 2g/3g toggle on UMTS networks
(the same fix has been already applied to Settings app power widget)
Change-Id: I255359ba4a6ba3d384140c4c9bd5f73e780b9037
Diffstat (limited to 'services/java/com/android/server')
-rwxr-xr-x | services/java/com/android/server/status/widget/NetworkModeButton.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/status/widget/NetworkModeButton.java b/services/java/com/android/server/status/widget/NetworkModeButton.java index b735448..885ab45 100755 --- a/services/java/com/android/server/status/widget/NetworkModeButton.java +++ b/services/java/com/android/server/status/widget/NetworkModeButton.java @@ -44,6 +44,7 @@ public class NetworkModeButton extends PowerButton{ switch(networkMode) { case Phone.NT_MODE_WCDMA_PREF: case Phone.NT_MODE_WCDMA_ONLY: + case Phone.NT_MODE_GSM_UMTS: return PowerButton.STATE_ENABLED; case Phone.NT_MODE_GSM_ONLY: return PowerButton.STATE_DISABLED; @@ -98,6 +99,7 @@ public class NetworkModeButton extends PowerButton{ Intent intent = new Intent(MODIFY_NETWORK_MODE); switch (networkMode ) { case Phone.NT_MODE_WCDMA_PREF: + case Phone.NT_MODE_GSM_UMTS: intent.putExtra(NETWORK_MODE, Phone.NT_MODE_GSM_ONLY); currentInternalState = PowerButton.STATE_TURNING_OFF; intendedNetworkMode=Phone.NT_MODE_GSM_ONLY; |