Merge "BluetoothPairingRequest: Add null check for action" am: ed7662f6f6
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1372268 Change-Id: Icebef90c2b18b36e5112d94aae02ae770ab300d3
This commit is contained in:
@@ -34,7 +34,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver {
|
|||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
String action = intent.getAction();
|
String action = intent.getAction();
|
||||||
if (!action.equals(BluetoothDevice.ACTION_PAIRING_REQUEST)) {
|
if (action == null || !action.equals(BluetoothDevice.ACTION_PAIRING_REQUEST)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// convert broadcast intent into activity intent (same action string)
|
// convert broadcast intent into activity intent (same action string)
|
||||||
|
Reference in New Issue
Block a user