mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +01:00
Remove unnecessary executor calls.
This commit is contained in:
@@ -186,13 +186,8 @@ class AndroidBluetoothPlugin extends BluetoothPlugin<BluetoothServerSocket> {
|
|||||||
@Override
|
@Override
|
||||||
public void onReceive(Context ctx, Intent intent) {
|
public void onReceive(Context ctx, Intent intent) {
|
||||||
int state = intent.getIntExtra(EXTRA_STATE, 0);
|
int state = intent.getIntExtra(EXTRA_STATE, 0);
|
||||||
if (state == STATE_ON) {
|
if (state == STATE_ON) onAdapterEnabled();
|
||||||
ioExecutor.execute(
|
else if (state == STATE_OFF) onAdapterDisabled();
|
||||||
AndroidBluetoothPlugin.this::onAdapterEnabled);
|
|
||||||
} else if (state == STATE_OFF) {
|
|
||||||
ioExecutor.execute(
|
|
||||||
AndroidBluetoothPlugin.this::onAdapterDisabled);
|
|
||||||
}
|
|
||||||
int scanMode = intent.getIntExtra(EXTRA_SCAN_MODE, 0);
|
int scanMode = intent.getIntExtra(EXTRA_SCAN_MODE, 0);
|
||||||
if (scanMode == SCAN_MODE_NONE) {
|
if (scanMode == SCAN_MODE_NONE) {
|
||||||
LOG.info("Scan mode: None");
|
LOG.info("Scan mode: None");
|
||||||
|
|||||||
Reference in New Issue
Block a user