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

Commit 068bf291 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not start staging task if activity is finishing"

parents 01fa7318 692a0997
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -91,6 +91,8 @@ public class InstallStaging extends Activity {
    protected void onResume() {
        super.onResume();

        // In some cases onResume might be called even if onActivityResult finished the activity.
        if (!isFinishing()) {
            // This is the first onResume in a single life of the activity
            if (mStagingTask == null) {
                // File does not exist, or became invalid
@@ -108,6 +110,7 @@ public class InstallStaging extends Activity {
                mStagingTask.execute(getIntent().getData());
            }
        }
    }

    @Override
    protected void onSaveInstanceState(Bundle outState) {