Merge "Check null BT profile to prevent crash" into tm-dev am: f792528a8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17822265 Change-Id: I4da83ee7f9175771ae83660daacffd9528911e40 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