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

Commit 0a39e0e7 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Always set NetworkInfo objects to available.

For all networks, NetworkInfo.isAvailble has basically always
been true for all connected networks. The new NetworkAgent API
sets it to false, and this causes application breakage. Always
set it to true.

Bug: 148126438
Test: builds, boots, searching in maps works again
Change-Id: Ia9876b0ce7f02120bd05cab526346cad22cf62b3
parent 1b9d6205
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -304,7 +304,10 @@ public abstract class NetworkAgent {
    private static NetworkInfo getLegacyNetworkInfo(final NetworkAgentConfig config) {
        // The subtype can be changed with (TODO) setLegacySubtype, but it starts
        // with the type and an empty description.
        return new NetworkInfo(config.legacyType, config.legacyType, config.legacyTypeName, "");
        final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacyType,
                config.legacyTypeName, "");
        ni.setIsAvailable(true);
        return ni;
    }

    /**