Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanmyrat committed Feb 17, 2020
1 parent e8a91f9 commit ebb833e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ public interface PostDao {
" ORDER BY date DESC ")
DataSource.Factory<Integer,Post> searchPosts(String query);

@Query("Select * From post")
@Query("Select * From post ORDER BY id DESC")
DataSource.Factory<Integer,Post> loadPostsOffline();
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ else if(networkState == NetworkState.FAVORITE){
else if(posts.size() == 0 && viewModel.currentSource()!=0 && adapter.getItemCount() ==0)
swipeRefreshLayout.setRefreshing(true);
}), 2000);
grid.smoothScrollToPosition(0);
grid.scrollToPosition(0);
});


Expand Down

0 comments on commit ebb833e

Please sign in to comment.