Commit Graph

6 Commits

Author SHA1 Message Date
xiaji
bbec29382d 修改应用名称为夏季TV,添加播放历史功能,修复搜索框高度问题 2026-05-24 22:14:50 +08:00
xiaji
cb016c116f feat: multi-source player with episode selection and auto-hide controls
- VideoExtractor: extract PlaySource (source tabs) with episodes grouped per source
- SiteConfig: add sourceSelector and sourceEpisodeGroupSelector CSS selectors
- PlayerActivity: source tabs + episode list at bottom, auto-hide after 4s, tap to toggle
- SettingsActivity: add source selector configuration fields
- Fullscreen playback with ExoPlayer or WebView fallback
2026-05-24 21:30:37 +08:00
xiaji
cf17ce7722 feat: replace direct player with web browser for search results
- Add BrowserActivity with WebView, toolbar (back/forward/close), URL bar, progress bar
- SearchFragment: open BrowserActivity instead of PlayerActivity on result click
- Browser allows user to browse the video site directly before choosing to play
2026-05-24 21:24:27 +08:00
xiaji
153b555d52 refactor: convert from Android TV to phone/tablet mode
- Replace Theme.Leanback with Theme.AppCompat.DayNight.NoActionBar
- Remove leanback dependencies (leanback, leanback-preference)
- Remove LEANBACK_LAUNCHER, leanback feature, banner from manifest
- PlayerActivity: replace D-pad with touch controls (click to toggle episodes, close button)
- SearchFragment: adaptive grid (3 cols phone / 5 cols tablet), remove focus-based history toggle
- Fix deprecated adapterPosition -> bindingAdapterPosition
2026-05-24 21:19:34 +08:00
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