Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3b006d4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Bluetooth: Prevent BT crash using adb commands"

parents 1bc9b8ba eb6a003b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -75,6 +75,11 @@ public class BluetoothOppLauncherActivity extends Activity {

        Intent intent = getIntent();
        String action = intent.getAction();
        if (action == null) {
            Log.w(TAG, " Received " + intent + " with null action");
            finish();
            return;
        }

        if (action.equals(Intent.ACTION_SEND) || action.equals(Intent.ACTION_SEND_MULTIPLE)) {
            //Check if Bluetooth is available in the beginning instead of at the end
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class BluetoothPbapActivity extends AlertActivity
        Intent i = getIntent();
        String action = i.getAction();
        mDevice = i.getParcelableExtra(BluetoothPbapService.EXTRA_DEVICE);
        if (action.equals(BluetoothPbapService.AUTH_CHALL_ACTION)) {
        if (action != null && action.equals(BluetoothPbapService.AUTH_CHALL_ACTION)) {
            showPbapDialog(DIALOG_YES_NO_AUTH);
            mCurrentDialog = DIALOG_YES_NO_AUTH;
        } else {