Remove preference requirement for TCP servers search.
Change-Id: I4305ccedd487f39ea3ec1a765f55c55aff096fd1
This commit is contained in:
parent
668c57f61d
commit
fd5ec7142f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user