Merge "Check null BT profile to prevent crash" into tm-dev am: f792528a8f
am: 7906685ce3
am: b52b7e797a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17822265 Change-Id: Iad90429168b95b1f972fb85e7cfb0cfb3f7469b7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -479,7 +479,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll
|
|||||||
@Override
|
@Override
|
||||||
protected void refresh() {
|
protected void refresh() {
|
||||||
for (LocalBluetoothProfile profile : getProfiles()) {
|
for (LocalBluetoothProfile profile : getProfiles()) {
|
||||||
if (!profile.isProfileReady()) {
|
if (profile != null && !profile.isProfileReady()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
SwitchPreference pref = mProfilesContainer.findPreference(
|
SwitchPreference pref = mProfilesContainer.findPreference(
|
||||||
|
Reference in New Issue
Block a user