Browse Source
remove redundant setRefreshing()
renovate/androidx.fragment-fragment-ktx-1.x
Austin Huang
3 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
5 changed files with
4 additions and
9 deletions
-
app/src/main/java/awais/instagrabber/fragments/CollectionPostsFragment.java
-
app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java
-
app/src/main/java/awais/instagrabber/fragments/LocationFragment.java
-
app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java
-
app/src/main/java/awais/instagrabber/fragments/main/FeedFragment.java
|
|
@ -458,7 +458,6 @@ public class CollectionPostsFragment extends Fragment implements SwipeRefreshLay |
|
|
|
.setFeedItemCallback(feedItemCallback) |
|
|
|
.setSelectionModeCallback(selectionModeCallback) |
|
|
|
.init(); |
|
|
|
binding.swipeRefreshLayout.setRefreshing(true); |
|
|
|
} |
|
|
|
|
|
|
|
private void updateSwipeRefreshState() { |
|
|
|
|
|
@ -370,7 +370,6 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe |
|
|
|
.setFeedItemCallback(feedItemCallback) |
|
|
|
.setSelectionModeCallback(selectionModeCallback) |
|
|
|
.init(); |
|
|
|
binding.swipeRefreshLayout.setRefreshing(true); |
|
|
|
binding.posts.addOnScrollListener(new RecyclerView.OnScrollListener() { |
|
|
|
@Override |
|
|
|
public void onScrolled(@NonNull final RecyclerView recyclerView, final int dx, final int dy) { |
|
|
|
|
|
@ -350,7 +350,6 @@ public class LocationFragment extends Fragment implements SwipeRefreshLayout.OnR |
|
|
|
.setFeedItemCallback(feedItemCallback) |
|
|
|
.setSelectionModeCallback(selectionModeCallback) |
|
|
|
.init(); |
|
|
|
binding.swipeRefreshLayout.setRefreshing(true); |
|
|
|
binding.posts.addOnScrollListener(new RecyclerView.OnScrollListener() { |
|
|
|
@Override |
|
|
|
public void onScrolled(@NonNull final RecyclerView recyclerView, final int dx, final int dy) { |
|
|
|
|
|
@ -758,15 +758,14 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme |
|
|
|
popupMenu.setOnMenuItemClickListener(item -> { |
|
|
|
final int itemId = item.getItemId(); |
|
|
|
if (itemId == R.id.share_dm) { |
|
|
|
if (profileModel.isPrivate()) { |
|
|
|
Toast.makeText(context, R.string.share_private_post, Toast.LENGTH_SHORT).show(); |
|
|
|
final UserSearchNavGraphDirections.ActionGlobalUserSearch actionGlobalUserSearch = UserSearchFragmentDirections |
|
|
|
.actionGlobalUserSearch() |
|
|
|
if (profileModel.isPrivate()) Toast.makeText(context, R.string.share_private_post, Toast.LENGTH_SHORT).show(); |
|
|
|
final PostViewV2FragmentDirections.ActionToUserSearch actionGlobalUserSearch = PostViewV2FragmentDirections |
|
|
|
.actionToUserSearch() |
|
|
|
.setTitle(getString(R.string.share)) |
|
|
|
.setActionLabel(getString(R.string.send)) |
|
|
|
.setShowGroups(true) |
|
|
|
.setMultiple(true) |
|
|
|
.setSearchMode(UserSearchFragment.SearchMode.RAVEN); |
|
|
|
.setSearchMode(UserSearchMode.RAVEN); |
|
|
|
final NavController navController = NavHostFragment.findNavController(PostViewV2Fragment.this); |
|
|
|
try { |
|
|
|
navController.navigate(actionGlobalUserSearch); |
|
|
|
|
|
@ -345,7 +345,6 @@ public class FeedFragment extends Fragment implements SwipeRefreshLayout.OnRefre |
|
|
|
.setFeedItemCallback(feedItemCallback) |
|
|
|
.setSelectionModeCallback(selectionModeCallback) |
|
|
|
.init(); |
|
|
|
binding.feedSwipeRefreshLayout.setRefreshing(true); |
|
|
|
binding.feedRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { |
|
|
|
@Override |
|
|
|
public void onScrolled(@NonNull final RecyclerView recyclerView, final int dx, final int dy) { |
|
|
|