Skip to content

Commit

Permalink
Merge pull request #4 from bcc-code/bug/28283_refresh_teasers_in_back…
Browse files Browse the repository at this point in the history
…ground

Refresh teasers in background on the explore screen
  • Loading branch information
kkuepper authored Apr 28, 2021
2 parents 4df3010 + a7485e7 commit ee6d804
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BMM.Core/ViewModels/Base/DocumentsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected Task BackgroundInitialization(Func<Task> action)
return Task.CompletedTask;
}

public void RefreshInBackground()
public virtual void RefreshInBackground()
{
ExceptionHandler.FireAndForgetWithoutUserMessages(() => LoadData(CachePolicy.UseCacheAndWaitForUpdates));
}
Expand Down
6 changes: 6 additions & 0 deletions BMM.Core/ViewModels/ExploreNewestViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ public override async Task<IEnumerable<Document>> LoadItems(CachePolicy policy =
return filteredDocs;
}

public override void RefreshInBackground()
{
base.RefreshInBackground();
FraKaareTeaserViewModel.RefreshInBackground();
AslaksenTeaserViewModel.RefreshInBackground();
}

public override void ViewDestroy(bool viewFinishing = true)
{
Expand Down

0 comments on commit ee6d804

Please sign in to comment.