Merge "Error handler for start dialog from adb command"
This commit is contained in:
committed by
Android (Google) Code Review
commit
0102d98dc9
@@ -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;
|
||||
|
Reference in New Issue
Block a user