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

Commit c9be9f4d authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Android (Google) Code Review
Browse files

Merge "Only activate the wifi alternate reality hack for KK and lower" into mnc-dev

parents f578953e 976f044b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -757,7 +757,7 @@ public class WifiManager {
     * of state change events.
     * of state change events.
     * <p>
     * <p>
     * <b>Note:</b> If an application's target SDK version is
     * <b>Note:</b> If an application's target SDK version is
     * {@link android.os.Build.VERSION_CODES#MNC} or newer, network
     * {@link android.os.Build.VERSION_CODES#LOLLIPOP} or newer, network
     * communication may not use Wi-Fi even if Wi-Fi is connected; traffic may
     * communication may not use Wi-Fi even if Wi-Fi is connected; traffic may
     * instead be sent through another network, such as cellular data,
     * instead be sent through another network, such as cellular data,
     * Bluetooth tethering, or Ethernet. For example, traffic will never use a
     * Bluetooth tethering, or Ethernet. For example, traffic will never use a
@@ -776,7 +776,7 @@ public class WifiManager {
     * @return {@code true} if the operation succeeded
     * @return {@code true} if the operation succeeded
     */
     */
    public boolean enableNetwork(int netId, boolean disableOthers) {
    public boolean enableNetwork(int netId, boolean disableOthers) {
        final boolean pin = disableOthers && mTargetSdkVersion < Build.VERSION_CODES.MNC;
        final boolean pin = disableOthers && mTargetSdkVersion < Build.VERSION_CODES.LOLLIPOP;
        if (pin) {
        if (pin) {
            registerPinningNetworkCallback();
            registerPinningNetworkCallback();
        }
        }