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
This commit is contained in:
xiaji
2026-05-24 21:09:05 +08:00
commit 98d05aa90a
57 changed files with 2366 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">视频搜索TV</string>
<string name="search_hint">输入关键词搜索...</string>
<string name="search_button">搜索</string>
<string name="clear_history">清空历史</string>
<string name="no_results">没有找到结果</string>
<string name="loading">加载中...</string>
<string name="network_error">网络错误,请检查网络连接</string>
<string name="search_failed">搜索失败,请重试</string>
<string name="play_error">播放失败</string>
<string name="retry">重试</string>
<string name="settings">设置</string>
<string name="site_config">网站配置</string>
<string name="base_url">基础URL</string>
<string name="search_url">搜索URL</string>
<string name="restore_default">恢复默认</string>
<string name="saved">已保存</string>
<string name="history">搜索历史</string>
<string name="select_episode">选择剧集</string>
<string name="movie">电影</string>
<string name="tv_series">电视剧</string>
<string name="back">返回</string>
<string name="config_saved">配置已保存</string>
<string name="config_restored">配置已恢复默认</string>
<string name="load_webpage">在网页中打开</string>
</resources>