fix refresh of device list when bluetooth gets turned on

This commit is contained in:
Andreas Shimokawa 2015-03-29 23:43:05 +02:00
parent a9c6ca79bc
commit 2b31d4b359
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ public class BluetoothStateChangeReceiver extends BroadcastReceiver {
if (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1) == BluetoothAdapter.STATE_ON) {
Intent refreshIntent = new Intent(ControlCenter.ACTION_REFRESH_DEVICELIST);
context.sendBroadcast(refreshIntent);
LocalBroadcastManager.getInstance(context).sendBroadcast(refreshIntent);
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
if (!sharedPrefs.getBoolean("general_autoconnectonbluetooth", false)) {