Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/devicesettings/data/repository/DeviceSettingServiceConnection.kt +8 −0 Original line number Original line Diff line number Diff line Loading @@ -121,6 +121,14 @@ class DeviceSettingServiceConnection( null null } } } } .catch { e -> if (e is DeadObjectException) { Log.e(TAG, "DeadObjectException happens when try to get service status.", e) emit(false) } else { throw e } } .firstOrNull() ?: false .firstOrNull() ?: false } } Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/devicesettings/data/repository/DeviceSettingServiceConnection.kt +8 −0 Original line number Original line Diff line number Diff line Loading @@ -121,6 +121,14 @@ class DeviceSettingServiceConnection( null null } } } } .catch { e -> if (e is DeadObjectException) { Log.e(TAG, "DeadObjectException happens when try to get service status.", e) emit(false) } else { throw e } } .firstOrNull() ?: false .firstOrNull() ?: false } } Loading