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

Commit bdb1bdf5 authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Change the NetworkInfo for disconnected types.

Don't send out NetworkInfos with UNKNOWN state for disconnected
networks - use DISCONNECTED.

bug:17095670
Change-Id: I863bebadc1f9a666572958b49d5e62809f485e5d
parent 635bc8bc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4759,7 +4759,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
            result.setType(networkType);
            return result;
        } else {
           return new NetworkInfo(networkType, 0, "Unknown", "");
            NetworkInfo result = new NetworkInfo(networkType);
            result.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null);
            return result;
        }
    }