Null-check on PipMenuController.
For now, TV PiP does not have a menu controller. Bug: 172909450 Test: None Change-Id: I0f8a6628607568e71dab795eda255972f00c8b44
This commit is contained in:
@@ -495,7 +495,9 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
||||
mOnDisplayIdChangeCallback.accept(info.displayId);
|
||||
}
|
||||
|
||||
mMenuActivityController.onTaskAppeared();
|
||||
if (mMenuActivityController != null) {
|
||||
mMenuActivityController.onTaskAppeared();
|
||||
}
|
||||
|
||||
if (mShouldIgnoreEnteringPipTransition) {
|
||||
final Rect destinationBounds = mPipBoundsState.getBounds();
|
||||
@@ -668,7 +670,9 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
||||
mPictureInPictureParams = null;
|
||||
mState = State.UNDEFINED;
|
||||
mPipUiEventLoggerLogger.setTaskInfo(null);
|
||||
mMenuActivityController.onTaskVanished();
|
||||
if (mMenuActivityController != null) {
|
||||
mMenuActivityController.onTaskVanished();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user