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

Commit d6886710 authored by Zheng Zhang's avatar Zheng Zhang
Browse files

Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider

TRANSPORT_BLUETOOTH is a essential network type for wearable device.

Bug: 64881794

Test: Trigger Bluetooth on/off on watch, check if UpdateNetworkState()
got called.

Change-Id: I30e39943220597987320ea7843d7d36827fdd0c7
parent 488c5db2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2314,6 +2314,7 @@ public class GnssLocationProvider implements LocationProviderInterface {
            NetworkRequest.Builder networkRequestBuilder = new NetworkRequest.Builder();
            networkRequestBuilder.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR);
            networkRequestBuilder.addTransportType(NetworkCapabilities.TRANSPORT_WIFI);
            networkRequestBuilder.addTransportType(NetworkCapabilities.TRANSPORT_BLUETOOTH);
            NetworkRequest networkRequest = networkRequestBuilder.build();
            mConnMgr.registerNetworkCallback(networkRequest, mNetworkConnectivityCallback);