Skip to content

Commit

Permalink
Make loding indicator more fuid
Browse files Browse the repository at this point in the history
  • Loading branch information
bricefriha committed Sep 24, 2021
1 parent 00a008b commit 84c492b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions AresNews/AresNews/ViewModels/NewsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,12 @@ public async void FetchArticles()
{
articles = await App.WService.Get<ObservableCollection<Article>>("feeds");

App.BackUpConn.DeleteAll<Article>();
App.BackUpConn.InsertAllWithChildren(articles);
// Manage backuo
await Task.Run(() =>
{
App.BackUpConn.DeleteAll<Article>();
App.BackUpConn.InsertAllWithChildren(articles);
});

}
catch (Exception ex)
Expand Down

0 comments on commit 84c492b

Please sign in to comment.