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

Commit 56a9ed85 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Merge "Change the NetworkInfo for disconnected types." into lmp-dev

parents 759f780a bdb1bdf5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4761,7 +4761,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;
        }
    }