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

Commit 0102d98d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Error handler for start dialog from adb command"

parents b18061c3 283ae5d1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -65,6 +65,11 @@ public class BluetoothPairingDialog extends FragmentActivity {
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent = getIntent();
        if (intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE) == null) {
            // Error handler for the case that dialog is started from adb command.
            finish();
            return;
        }
        mBluetoothPairingController = new BluetoothPairingController(intent, this);
        // build the dialog fragment
        boolean fragmentFound = true;