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

Commit 94f10ec0 authored by Quang Luong's avatar Quang Luong
Browse files

Remove WifiEntry.METERED_CHOICE_UNKNOWN

METERED_CHOICE_UNKNOWN should represent the default value of the metered
choice, but this can be represented by METERED_CHOICE_AUTO already.

Bug: 70983952
Test: build
Change-Id: I3bea9217e197ff88eba606be9235b1db65158425
parent 8ad24a25
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -106,14 +106,12 @@ public class WifiMeteredPreferenceController2 extends BasePreferenceController i

    private int getWifiEntryMeteredChoice(WifiConfiguration wifiConfiguration) {
        switch (wifiConfiguration.meteredOverride) {
            case WifiConfiguration.METERED_OVERRIDE_NONE:
                return WifiEntry.METERED_CHOICE_AUTO;
            case WifiConfiguration.METERED_OVERRIDE_METERED:
                return WifiEntry.METERED_CHOICE_METERED;
            case WifiConfiguration.METERED_OVERRIDE_NOT_METERED:
                return WifiEntry.METERED_CHOICE_UNMETERED;
            default:
                return WifiEntry.METERED_CHOICE_UNKNOWN;
                return WifiEntry.METERED_CHOICE_AUTO;
        }
    }
}