Merge "Add Null checks while processing pairing cancel intent" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
58295e71d2
@@ -355,9 +355,11 @@ public final class BluetoothEventManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int errorMsg = R.string.bluetooth_pairing_error_message;
|
int errorMsg = R.string.bluetooth_pairing_error_message;
|
||||||
|
if (context != null && cachedDevice != null) {
|
||||||
Utils.showError(context, cachedDevice.getName(), errorMsg);
|
Utils.showError(context, cachedDevice.getName(), errorMsg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private class DockEventHandler implements Handler {
|
private class DockEventHandler implements Handler {
|
||||||
public void onReceive(Context context, Intent intent, BluetoothDevice device) {
|
public void onReceive(Context context, Intent intent, BluetoothDevice device) {
|
||||||
|
|||||||
Reference in New Issue
Block a user