TLDR: here's my bug report : http://goo.gl/UgBFW2
Using a SwipeRefreshLayout
if I press back and trigger either a getSupportFragmentManager().popBackstack()
, super.onBackPressed()
or fragmentTransaction.replace()
right when the adapter triggers the views refresh, the two fragments overlap (a video showing the problem can be found in the top link).
I tried several things and adding a background is not a solution since the list fragment is in the foreground and the one clickable is the previous fragment.
Has anyone found a solution to this ?
Replacing Fragment does not work properly while swipeRefresh is running
Add this to the fragment that contains the swipe
@Override
public void onPause() {
super.onPause();
if (swipeRefreshLayout!=null) {
swipeRefreshLayout.setRefreshing(false);
swipeRefreshLayout.destroyDrawingCache();
swipeRefreshLayout.clearAnimation();
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With