Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b25a7fef authored by Daichi Hirono's avatar Daichi Hirono Committed by Android (Google) Code Review
Browse files

Merge "Check isDestroyed after finishing async HandleRootsChangedTask."

parents 0b6af049 38afb8fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -636,7 +636,7 @@ public abstract class BaseActivity extends Activity {

        @Override
        protected void onPostExecute(RootInfo homeRoot) {
            if (homeRoot != null && mHome != null) {
            if (homeRoot != null && mHome != null && !isDestroyed()) {
                // Clear entire backstack and start in new root
                mState.onRootChanged(homeRoot);
                mSearchManager.update(homeRoot);