OSDN Git Service

Update task-on-home flag to task for every activity launch
authorLouis Chang <louischang@google.com>
Thu, 17 Jan 2019 02:36:56 +0000 (10:36 +0800)
committerLouis Chang <louischang@google.com>
Thu, 21 Feb 2019 09:32:59 +0000 (17:32 +0800)
commitb45ee7e3455c9c9120ba714cf257d68d2c050dca
treea3062426f4332c3cc4940793cbd96b3baef41d95
parent1485a60b454c9a3e335084e10734cba21525ee8c
Update task-on-home flag to task for every activity launch

Task intent was the original intent that started the task,
which was not being updated for later activity launches.
Therefore, home was not bring to top along with the reused
task while starting the activity again with the task-on-home
flag.

Bug: 122564343
Test: atest ActivityManagerActivityVisibilityTests#testLaunchTaskOnHome

Change-Id: I22a7a9c57c18b8687e41852af27268c37a87fc43
services/core/java/com/android/server/wm/ActivityStarter.java