Merge "Always include BAND_MODE=AUTOMATIC in the Radio Band Mode List"

This commit is contained in:
nharold
2016-12-21 21:40:21 +00:00
committed by Gerrit Code Review

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