mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Use AndroidExecutor for background tasks that make API calls.
This commit is contained in:
@@ -48,17 +48,6 @@ public class AndroidUtils {
|
||||
til.setError(null);
|
||||
}
|
||||
|
||||
public static void enableBluetooth(final BluetoothAdapter adapter,
|
||||
final boolean enable) {
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (enable) adapter.enable();
|
||||
else adapter.disable();
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
|
||||
public static String getBluetoothAddress(Context ctx,
|
||||
BluetoothAdapter adapter) {
|
||||
// Return the adapter's address if it's valid and not fake
|
||||
|
||||
Reference in New Issue
Block a user