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

Skip to content
Commit 8afd1531 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Avoid requesting stop for finishing activity

The problem is that removeTask is called on a task with an activity
which is finishing and stopping. Because it is already finishing,
the steps of removeTask are skipped. If the activity is removed
from mStoppingActivities, then the activity won't proceed to destroy.

Bug: 309136273
Test: atest ActivityTaskSupervisorTests#testRemoveTask
Test: CtsWindowManagerDeviceActivity:ActivityLifecycleTests \
      #testRelaunchConfigurationChangedWhileBecomingVisible
      There should have wm_on_destroy_called for SecondActivity.

Change-Id: If13d893ae7eb4cc4105f5554a6e3ed6aae728df7
parent cf01f294
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment