Switch to receiving LocationManager.MODE_CHANGED_ACTION

- From LocationManager.PROVIDERS_CHANGED

- Part of fix for b/10409275

Change-Id: I4030c8df4db942777d6035266a8ed7f18e458fb5
This commit is contained in:
Tom O'Neill
2013-09-03 07:56:53 -07:00
parent a2904f9d50
commit 4af6514c78
2 changed files with 2 additions and 2 deletions

View File

@@ -1651,7 +1651,7 @@
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
<action android:name="android.net.conn.BACKGROUND_DATA_SETTING_CHANGED" />
<action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
<action android:name="android.location.PROVIDERS_CHANGED" />
<action android:name="android.location.MODE_CHANGED" />
<action android:name="com.android.sync.SYNC_CONN_STATUS_CHANGED" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />

View File

@@ -800,7 +800,7 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider {
sWifiState.onActualStateChange(context, intent);
} else if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(action)) {
sBluetoothState.onActualStateChange(context, intent);
} else if (LocationManager.PROVIDERS_CHANGED_ACTION.equals(action)) {
} else if (LocationManager.MODE_CHANGED_ACTION.equals(action)) {
sLocationState.onActualStateChange(context, intent);
} else if (ContentResolver.ACTION_SYNC_CONN_STATUS_CHANGED.equals(action)) {
sSyncState.onActualStateChange(context, intent);