- Refactor code to use idiomatic Kotlin functions like isNullOrEmpty(), associateBy, and appendRange

- Increase `DiffUtil` threshold in `CursorRecyclerAdapter` to 500 and optimize equality checks
- Simplify locale configuration by removing legacy Android SDK version checks
- Remove unnecessary `@SuppressLint` annotations and `@Volatile` modifiers
- Improve performance of collection operations in `ProductFragment` and `Preferences` using `associateBy` and `firstOrNull`
- Suppress deprecation warnings for `getOpacity` in `DrawableWrapper` and `TabsFragment`
- Clean up service binding logic in `Connection.kt` with better type casting
This commit is contained in:
2026-03-24 17:31:51 +01:00
parent bdd204d9de
commit 2c9af08e8c
12 changed files with 35 additions and 33 deletions
@@ -331,7 +331,7 @@ class SyncService: ConnectionService<SyncService.Binder>() {
currentTask = null
handleNextTask(false)
val blocked = updateNotificationBlockerFragment?.get()?.isAdded == true
if (!blocked && result != null && result.isNotEmpty()) {
if (!blocked && !result.isNullOrEmpty()) {
displayUpdatesNotification(result)
}
}