Skip to content

Commit

Permalink
Avoid loading collection if finishing() == true
Browse files Browse the repository at this point in the history
This was proposed as a fix for #4987 but that issue is being fixed
in a defense-in-depth fashion as this is a threading change and
harder to reason about
  • Loading branch information
mikehardy committed Sep 27, 2018
1 parent 646de85 commit 646be33
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,10 @@ protected void onCreate(Bundle savedInstanceState) {

View mainView = findViewById(android.R.id.content);
initNavigationDrawer(mainView);
// Open collection asynchronously
startLoadingCollection();
// Open collection asynchronously unless our sub-class signaled they need to end
if (!isFinishing()) {
startLoadingCollection();
}
}

protected int getContentViewAttr(int fullscreenMode) {
Expand Down

0 comments on commit 646be33

Please sign in to comment.