add isAdded() checks to feed/cats fragments postexecute

This commit is contained in:
Andrew Dolgov 2016-02-03 20:44:19 +03:00
parent 609ab8eb30
commit 3f85a1328c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);