Loading src/com/android/settings/bluetooth/BluetoothDevicePreference.java +5 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,10 @@ public final class BluetoothDevicePreference extends GearPreference { void onPreferenceAttributesChanged() { try { ThreadUtils.postOnBackgroundThread(() -> { if (mCachedDevice.getDevice() != null) { Log.d(TAG, "onPreferenceAttributesChanged, start updating for device " + mCachedDevice.getDevice().getAnonymizedAddress()); } @Nullable String name = mCachedDevice.getName(); // Null check is done at the framework @Nullable String connectionSummary = getConnectionSummary(); Loading Loading @@ -325,6 +329,7 @@ public final class BluetoothDevicePreference extends GearPreference { notifyHierarchyChanged(); } }); Log.d(TAG, "onPreferenceAttributesChanged, complete updating for device " + name); }); } catch (RejectedExecutionException e) { Log.w(TAG, "Handler thread unavailable, skipping getConnectionSummary!"); Loading src/com/android/settings/connecteddevice/AvailableMediaDeviceGroupController.java +2 −0 Original line number Diff line number Diff line Loading @@ -335,6 +335,7 @@ public class AvailableMediaDeviceGroupController extends BasePreferenceControlle var unused = ThreadUtils.postOnBackgroundThread( () -> { Log.d(TAG, "updateTitle, check current status"); int titleResId; if (isAudioModeOngoingCall(mContext)) { // in phone call Loading @@ -347,6 +348,7 @@ public class AvailableMediaDeviceGroupController extends BasePreferenceControlle // without phone call, not audio sharing titleResId = R.string.connected_device_media_device_title; } Log.d(TAG, "updateTitle, title = " + titleResId); mContext.getMainExecutor() .execute( () -> { Loading Loading
src/com/android/settings/bluetooth/BluetoothDevicePreference.java +5 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,10 @@ public final class BluetoothDevicePreference extends GearPreference { void onPreferenceAttributesChanged() { try { ThreadUtils.postOnBackgroundThread(() -> { if (mCachedDevice.getDevice() != null) { Log.d(TAG, "onPreferenceAttributesChanged, start updating for device " + mCachedDevice.getDevice().getAnonymizedAddress()); } @Nullable String name = mCachedDevice.getName(); // Null check is done at the framework @Nullable String connectionSummary = getConnectionSummary(); Loading Loading @@ -325,6 +329,7 @@ public final class BluetoothDevicePreference extends GearPreference { notifyHierarchyChanged(); } }); Log.d(TAG, "onPreferenceAttributesChanged, complete updating for device " + name); }); } catch (RejectedExecutionException e) { Log.w(TAG, "Handler thread unavailable, skipping getConnectionSummary!"); Loading
src/com/android/settings/connecteddevice/AvailableMediaDeviceGroupController.java +2 −0 Original line number Diff line number Diff line Loading @@ -335,6 +335,7 @@ public class AvailableMediaDeviceGroupController extends BasePreferenceControlle var unused = ThreadUtils.postOnBackgroundThread( () -> { Log.d(TAG, "updateTitle, check current status"); int titleResId; if (isAudioModeOngoingCall(mContext)) { // in phone call Loading @@ -347,6 +348,7 @@ public class AvailableMediaDeviceGroupController extends BasePreferenceControlle // without phone call, not audio sharing titleResId = R.string.connected_device_media_device_title; } Log.d(TAG, "updateTitle, title = " + titleResId); mContext.getMainExecutor() .execute( () -> { Loading