Skip to content

Commit

Permalink
fix: podcast search from other pages (#799)
Browse files Browse the repository at this point in the history
* fix: podcast search from other pages

* fix: load more
  • Loading branch information
Feichtmeier authored Jul 13, 2024
1 parent 76a0e26 commit 68bd393
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/src/podcasts/view/podcast_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ class PodcastPage extends StatelessWidget with WatchItMixin {
.toSet() ??
{};

void onTap(text) {
Future<void> onTap(text) async {
final podcastModel = di<PodcastModel>();
Navigator.of(context).maybePop();
di<LibraryModel>().setIndex(2);
podcastModel.setSearchActive(true);
podcastModel.setSearchQuery(text);
podcastModel.search(searchQuery: text);
await podcastModel.search(searchQuery: text);
di<LibraryModel>().setIndex(2);
}

return YaruDetailPage(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/podcasts/view/podcasts_discover_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class _PodcastsDiscoverGridState extends State<PodcastsDiscoverGrid> {
final setLimit = model.setLimit;
Future<void> incrementLimit() async {
setLimit(limit + 20);
await model.search();
await model.search(searchQuery: model.searchQuery);
}

if (searchResult == null || widget.checkingForUpdates) {
Expand Down

0 comments on commit 68bd393

Please sign in to comment.