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

Commit 0b6af049 authored by Steve McKay's avatar Steve McKay Committed by Android (Google) Code Review
Browse files

Merge "Stop listening root change events when the activity is destroyed."

parents 1e9aafb8 e28c3c88
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -176,6 +176,12 @@ public abstract class BaseActivity extends Activity {
        return true;
    }

    @Override
    protected void onDestroy() {
        mRoots.setOnCacheUpdateListener(null);
        super.onDestroy();
    }

    State buildDefaultState() {
        State state = new State();

@@ -518,7 +524,7 @@ public abstract class BaseActivity extends Activity {

        @Override
        protected void onPostExecute(DocumentInfo result) {
            if (result != null) {
            if (result != null && !isDestroyed()) {
                openContainerDocument(result);
            }
        }