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
This commit is contained in:
Nathan Harold
2016-12-19 18:04:52 -08:00
parent 8c11340b0c
commit f8555e4812

View File

@@ -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());