fix(tv-picker): native Android TV image picker for branded/slideshow + bump 1.0.10+11

This commit is contained in:
dwindown
2026-04-05 16:01:46 +07:00
parent 98b8437e87
commit ba407b1848
5 changed files with 404 additions and 35 deletions

View File

@@ -48,10 +48,8 @@ class _UnsplashBackgroundState extends ConsumerState<UnsplashBackground> {
Future<void> runFetch() async {
if (!ref.read(settingsProvider).useUnsplashBackground) return;
final requestId = ++_fetchNonce;
final randomPage = 1 + _rng.nextInt(10);
final urls = await UnsplashService.instance.fetchLandscapeBackgrounds(
keyword,
page: randomPage,
);
if (!mounted || requestId != _fetchNonce) return;
if (urls.isNotEmpty) {