Skip to content
Commit 0342788c authored by Louis Chang's avatar Louis Chang
Browse files

Do not override finish activity behavior on back event

... if the activity was not started from Launcher.

The launcher activity was started from notification and was not
removed while swiping back. Another activity instance was added
on top of the same task when the app was started from Launcher
because the intent that started the task and the intent that
started from Launcher are different.

Also adding unit test to verify task is moved to back if the root
activity was started from Launcher.

Bug: 272723475
Test: atest ActivityRecordTests
Change-Id: I97ccce3a7491669ab6b649b6e1f053beae3828f0
parent 36fef761
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