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