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

Commit 54b3df09 authored by lucaslin's avatar lucaslin
Browse files

Use onNetworkUnwanted() instead of unwanted()

NetworkAgent#unwanted() is a hidden API which cannot be called
after putting NetworkAgent into mainline module, so the caller
should use the public one - NetworkAgent#onNetworkUnwanted()
instead.

Bug: 178991503
Test: Add a log and connect to a network which is provided by
      another device through BT tethering. Disconnect the BT
      network and check the log.
Change-Id: Ib341289366e2c1c2ac8e653ccddd9df81b2084d4
parent 77d40db2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ public class BluetoothTetheringNetworkFactory extends NetworkFactory {
                                    mNetworkCapabilities, linkProperties, NETWORK_SCORE,
                                    config, getProvider()) {
                                @Override
                                public void unwanted() {
                                public void onNetworkUnwanted() {
                                    BluetoothTetheringNetworkFactory.this.onCancelRequest();
                                }
                            };