mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Separate the sync layer from its clients. #112
This commit is contained in:
@@ -326,11 +326,11 @@ public class TestingActivity extends BriarActivity implements OnClickListener {
|
||||
// Is Bluetooth available?
|
||||
BluetoothAdapter bt = null;
|
||||
try {
|
||||
bt = androidExecutor.call(new Callable<BluetoothAdapter>() {
|
||||
bt = androidExecutor.submit(new Callable<BluetoothAdapter>() {
|
||||
public BluetoothAdapter call() throws Exception {
|
||||
return BluetoothAdapter.getDefaultAdapter();
|
||||
}
|
||||
});
|
||||
}).get();
|
||||
} catch (InterruptedException e) {
|
||||
LOG.warning("Interrupted while getting BluetoothAdapter");
|
||||
Thread.currentThread().interrupt();
|
||||
|
||||
Reference in New Issue
Block a user