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

Commit 8a96b31b authored by lucaslin's avatar lucaslin Committed by Lucas Lin
Browse files

Remove the usage of hidden API - setIsAvailable() from Vpn

In fact, NetworkAgent#getLegacyNetworkInfo() will call this API,
so VPN doesn't need to call it.
Remove the redundant behavior and the usage of hidden API.

Bug: 182963397
Test: m
Change-Id: I3b88f22fffde3dd4000d28342ed07209c7121a37
Merged-In: I3b88f22fffde3dd4000d28342ed07209c7121a37
  (cherry-picked from ag/13929100)
parent 4eca6d0c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1287,7 +1287,6 @@ public class Vpn {
        });
        mNetworkAgent.setUnderlyingNetworks((mConfig.underlyingNetworks != null)
                ? Arrays.asList(mConfig.underlyingNetworks) : null);
        mNetworkInfo.setIsAvailable(true);
        updateState(DetailedState.CONNECTED, "agentConnect");
    }