Merge "Early return when mA2dp is null (disconnected) to avoid null object reference"
This commit is contained in:
@@ -266,8 +266,8 @@ public class BtHelper {
|
|||||||
if (AudioService.DEBUG_VOL) {
|
if (AudioService.DEBUG_VOL) {
|
||||||
AudioService.sVolumeLogger.log(new AudioEventLogger.StringEvent(
|
AudioService.sVolumeLogger.log(new AudioEventLogger.StringEvent(
|
||||||
"setAvrcpAbsoluteVolumeIndex: bailing due to null mA2dp").printLog(TAG));
|
"setAvrcpAbsoluteVolumeIndex: bailing due to null mA2dp").printLog(TAG));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (!mAvrcpAbsVolSupported) {
|
if (!mAvrcpAbsVolSupported) {
|
||||||
AudioService.sVolumeLogger.log(new AudioEventLogger.StringEvent(
|
AudioService.sVolumeLogger.log(new AudioEventLogger.StringEvent(
|
||||||
|
|||||||
Reference in New Issue
Block a user