Merge "Check isDestroyed after finishing async HandleRootsChangedTask."
This commit is contained in:
committed by
Android (Google) Code Review
commit
9297a0fb2a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user