add isAdded() checks to feed/cats fragments postexecute
This commit is contained in:
parent
609ab8eb30
commit
3f85a1328c
@ -315,7 +315,7 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(JsonElement result) {
|
||||
if (isDetached()) return;
|
||||
if (isDetached() || !isAdded()) return;
|
||||
|
||||
if (m_swipeLayout != null) m_swipeLayout.setRefreshing(false);
|
||||
|
||||
|
@ -496,7 +496,7 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(JsonElement result) {
|
||||
if (isDetached()) return;
|
||||
if (isDetached() || !isAdded()) return;
|
||||
|
||||
if (getView() != null) {
|
||||
View loadingBar = getView().findViewById(R.id.feeds_loading_bar);
|
||||
|
Loading…
Reference in New Issue
Block a user