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

Commit b94b41f5 authored by Brian Muramatsu's avatar Brian Muramatsu
Browse files

Listen for CONNECTIVITY_ACTION in GPS Provider

Bug: 7020678

The broadcast receiver in GpsLocationProvider now listens for
CONNECTIVITY_ACTION changes. Set the intent filter so that
it catches those actions and updates the network state.

Change-Id: I7efd393dfe2aa8b172dd6701d42ff9ed687648a2
parent c2cb8d22
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -496,6 +496,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction(ALARM_WAKEUP);
        intentFilter.addAction(ALARM_TIMEOUT);
        intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
        mContext.registerReceiver(mBroadcastReciever, intentFilter);
    }