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

Commit f3b34603 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 ab064b3b da19ee00
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);
            }
        }