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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user