BluetoothPairingRequest: Add null check for action am: 1805f666e7 am: e8dd64f891 am: a9ffaaec62
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12214808 Change-Id: Idc8e9dfeedb79290d61441677e39ea5f82515f94
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;
|
||||||
}
|
}
|
||||||
PowerManager powerManager =
|
PowerManager powerManager =
|
||||||
|
|||||||
Reference in New Issue
Block a user