From 24df7d49d566eb37849fe141aa3e0c04ff75b71d Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 3 Jun 2023 21:46:23 -0300 Subject: [PATCH] feat: make ProfileFragment not reloadable when in edit mode --- .../org/joinmastodon/android/fragments/ProfileFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index 42637ec4c..d8188bfcd 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -474,6 +474,11 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList @Override public void onRefresh(){ + if(isInEditMode){ + refreshing=false; + refreshLayout.setRefreshing(false); + return; + } if(refreshing) return; refreshing=true;