Fix tv pip killed on configuration changed

Bug: 246954854
Test: manual - change language and see PiP is still there
Change-Id: I8d984060c67b385d43c3c84b2289e8186dcd263e
This commit is contained in:
Galia Peycheva
2022-10-04 13:55:32 +02:00
parent 56b349d267
commit 59405621f2

View File

@@ -240,12 +240,6 @@ public class TvPipController implements PipTransitionController.PipTransitionCal
ProtoLog.d(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
"%s: onConfigurationChanged(), state=%s", TAG, stateToName(mState));
if (isPipShown()) {
ProtoLog.d(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
"%s: > closing Pip.", TAG);
closePip();
}
loadConfigurations();
mPipNotificationController.onConfigurationChanged(mContext);
mTvPipBoundsAlgorithm.onConfigurationChanged(mContext);