Skip to content

Commit b94b41f

Browse files
author
Brian Muramatsu
committed
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
1 parent c2cb8d2 commit b94b41f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/java/com/android/server/location/GpsLocationProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ private void initialize() {
496496
IntentFilter intentFilter = new IntentFilter();
497497
intentFilter.addAction(ALARM_WAKEUP);
498498
intentFilter.addAction(ALARM_TIMEOUT);
499+
intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
499500
mContext.registerReceiver(mBroadcastReciever, intentFilter);
500501
}
501502

0 commit comments

Comments
 (0)