Fix trampoline activities when relaunching PiP

- We should be checking the actual launched-from package since that stores
  the source package across trampoline activities

Bug: 35458117
Test: Enter PiP from a trampoline activity, launch again from Launcher
      and ensure that it is expanded

Change-Id: Ia0e586e8b21dee63b513bd61a41a24e7da4325e1
This commit is contained in:
Winson Chung
2017-02-16 20:41:08 -08:00
parent ec453e0106
commit 49affea25b
8 changed files with 19 additions and 21 deletions

View File

@@ -32,9 +32,10 @@ oneway interface ITaskStackListener {
* running in the pinned stack and the activity is not actually started, but the task is either
* brought to the front or a new Intent is delivered to it.
*
* @param sourceComponent the component name of the activity that initiated the restart attempt
* @param launchedFromPackage the package name of the activity that initiated the restart
* attempt
*/
void onPinnedActivityRestartAttempt(in ComponentName sourceComponent);
void onPinnedActivityRestartAttempt(String launchedFromPackage);
/**
* Called whenever the pinned stack is done animating a resize.

View File

@@ -35,7 +35,7 @@ public abstract class TaskStackListener extends ITaskStackListener.Stub {
}
@Override
public void onPinnedActivityRestartAttempt(ComponentName sourceComponent) throws RemoteException {
public void onPinnedActivityRestartAttempt(String launchedFromPackage) throws RemoteException {
}
@Override