Merge "Fix issue with PiP callbacks not being handled"
This commit is contained in:
@@ -600,9 +600,7 @@ public class PipManager implements BasePipManager {
|
||||
@Override
|
||||
public void onTaskStackChanged() {
|
||||
if (DEBUG) Log.d(TAG, "onTaskStackChanged()");
|
||||
if (!checkCurrentUserId(mContext, DEBUG)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (getState() != STATE_NO_PIP) {
|
||||
boolean hasPip = false;
|
||||
|
||||
@@ -637,9 +635,7 @@ public class PipManager implements BasePipManager {
|
||||
@Override
|
||||
public void onActivityPinned(String packageName, int taskId) {
|
||||
if (DEBUG) Log.d(TAG, "onActivityPinned()");
|
||||
if (!checkCurrentUserId(mContext, DEBUG)) {
|
||||
return;
|
||||
}
|
||||
|
||||
StackInfo stackInfo = getPinnedStackInfo();
|
||||
if (stackInfo == null) {
|
||||
Log.w(TAG, "Cannot find pinned stack");
|
||||
@@ -664,9 +660,7 @@ public class PipManager implements BasePipManager {
|
||||
@Override
|
||||
public void onPinnedActivityRestartAttempt(boolean clearedTask) {
|
||||
if (DEBUG) Log.d(TAG, "onPinnedActivityRestartAttempt()");
|
||||
if (!checkCurrentUserId(mContext, DEBUG)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If PIPed activity is launched again by Launcher or intent, make it fullscreen.
|
||||
movePipToFullscreen();
|
||||
}
|
||||
@@ -674,9 +668,7 @@ public class PipManager implements BasePipManager {
|
||||
@Override
|
||||
public void onPinnedStackAnimationEnded() {
|
||||
if (DEBUG) Log.d(TAG, "onPinnedStackAnimationEnded()");
|
||||
if (!checkCurrentUserId(mContext, DEBUG)) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (getState()) {
|
||||
case STATE_PIP_MENU:
|
||||
showPipMenu();
|
||||
|
||||
Reference in New Issue
Block a user