summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Daynard <nardholio@gmail.com>2013-12-21 19:34:44 -0500
committerAdnan Begovic <adnan@cyngn.com>2015-12-22 12:44:06 -0800
commit9cd3524d145b190fa046f35fcef7464bca5f6785 (patch)
treec7036a44d1752aed8a6a40435210ddfe633eeb42
parent7423a61307c69b320355e3f0bc0357e5c4c9844d (diff)
downloadpackages_apps_Settings-9cd3524d145b190fa046f35fcef7464bca5f6785.zip
packages_apps_Settings-9cd3524d145b190fa046f35fcef7464bca5f6785.tar.gz
packages_apps_Settings-9cd3524d145b190fa046f35fcef7464bca5f6785.tar.bz2
Always show band 0 (Automatic)
None of the phones I tested ever displayed Automatic band selection as a choice, probably because no baseband is going to report it supports mythical band 0. Make sure it is always displayed. nuclearmistake's notes: Without this, a wipe is required to set band mode to automatic. If someone in singapore set the their phone to US mode, and was only offered "US" and "Europe" band modes, they would have to WIPE to return the band mode setting to automatic. The enumeration of the modes is slightly less broken after the previous commit, BUT band mode 0 should be in this list... always. all the time. Signed-off-by: nuclearmistake <nuclearmistake@gmail.com> Change-Id: I5082b04ee63a2916941fd1db40762fa990d59583
-rw-r--r--src/com/android/settings/BandMode.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/settings/BandMode.java b/src/com/android/settings/BandMode.java
index 4d17014..e22fbaa 100644
--- a/src/com/android/settings/BandMode.java
+++ b/src/com/android/settings/BandMode.java
@@ -153,7 +153,10 @@ public class BandMode extends Activity {
if (result.result != null) {
int bands[] = (int[])result.result;
-
+ //Always show Band 0, ie Automatic
+ item = new BandListItem(0);
+ mBandListAdapter.add(item);
+ if (DBG) log("Add " + item.toString());
for (int i=0; i<bands.length; i++) {
item = new BandListItem(bands[i]);
mBandListAdapter.add(item);