1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 02:46:50 +01:00

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

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)) {