diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java b/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java index 8678286461d9..7718d39cd5e3 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java @@ -203,16 +203,16 @@ public class CommunicationService extends Service implements Runnable, MessagesL } public void startSearch() { - SharedPreferences aPref = PreferenceManager - .getDefaultSharedPreferences(this); - boolean bEnableWifi = aPref.getBoolean("option_enablewifi", false); - if (bEnableWifi) - mTcpServersFinder.startSearch(); + mTcpServersFinder.startSearch(); + BluetoothAdapter aAdapter = BluetoothAdapter.getDefaultAdapter(); if (aAdapter != null) { mBluetoothPreviouslyEnabled = aAdapter.isEnabled(); - if (!mBluetoothPreviouslyEnabled) + + if (!mBluetoothPreviouslyEnabled) { aAdapter.enable(); + } + mBluetoothServersFinder.startSearch(); } }