Commit Graph

2 Commits

Author SHA1 Message Date
xiaji
7dee3977de fix: API compatibility and leanback requirement
- Replace resources.getColor(id, null) with ContextCompat.getColor() for API 21-22 compatibility
- Change android.software.leanback to required=false to allow testing on non-TV emulators
2026-05-24 21:14:19 +08:00
xiaji
98d05aa90a fix: resolve emulator crash - thread safety and icon fallback
- NativeSearch: move onResult/onError callbacks outside withContext(Dispatchers.IO) to prevent CalledFromWrongThreadException
- SearchStrategy: change callback types to suspend to enable proper coroutine chaining
- SearchCoordinator: remove leaked CoroutineScope, rely on suspend callback chaining for fallback flow
- Resources: add mipmap-hdpi/mdpi/xhdpi/xxhdpi icon fallbacks for API < 26 devices
2026-05-24 21:09:05 +08:00