Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93ae8544 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Android (Google) Code Review
Browse files

Merge "Fix Broadcast Radio test to not fail on HD Radio."

parents 5d17d3a5 33d00704
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -123,10 +123,11 @@ public class RadioTest {
        // find FM band and build its config
        mModule = mModules.get(0);
        for (RadioManager.BandDescriptor band : mModule.getBands()) {
            if (band.getType() == RadioManager.BAND_AM) {
            int bandType = band.getType();
            if (bandType == RadioManager.BAND_AM || bandType == RadioManager.BAND_AM_HD) {
                mAmBandDescriptor = (RadioManager.AmBandDescriptor)band;
            }
            if (band.getType() == RadioManager.BAND_FM) {
            if (bandType == RadioManager.BAND_FM || bandType == RadioManager.BAND_FM_HD) {
                mFmBandDescriptor = (RadioManager.FmBandDescriptor)band;
            }
        }