From f8555e481263e936ab853a32431c188d34419467 Mon Sep 17 00:00:00 2001 From: Nathan Harold Date: Mon, 19 Dec 2016 18:04:52 -0800 Subject: [PATCH] Always include BAND_MODE=AUTOMATIC in the Radio Band Mode List To facilitate user recovery from issues where the band mode list is incomplete and may not report the full list of bands, the user should *always* have the ability to set the band mode selection to AUTOMATIC. Bug: 28124606 Test: compilation, UI check Change-Id: Ib961d9b058ade5a51dfec0777971c8c98dee2033 --- src/com/android/settings/BandMode.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/android/settings/BandMode.java b/src/com/android/settings/BandMode.java index 6f83fbc296a..b1302952429 100644 --- a/src/com/android/settings/BandMode.java +++ b/src/com/android/settings/BandMode.java @@ -164,7 +164,12 @@ public class BandMode extends Activity { int size = bands[0]; if (size > 0) { + mBandListAdapter.add( + new BandListItem(Phone.BM_UNSPECIFIED)); //Always include AUTOMATIC for (int i=1; i<=size; i++) { + if (bands[i] == Phone.BM_UNSPECIFIED) { + continue; + } item = new BandListItem(bands[i]); mBandListAdapter.add(item); if (DBG) log("Add " + item.toString());