PiP: Disable enterSplit for now.
Bug: 206645013 Test: Enter split button no longer appears (cherry picked from commiteab029ce8d) (cherry picked from commitc03eca68e2) Merged-In: I6237dd1c88f50733ab24e45806c413d5777032e9 Change-Id: I6237dd1c88f50733ab24e45806c413d5777032e9
This commit is contained in:
@@ -43,6 +43,9 @@
|
|||||||
<!-- PiP minimum size, which is a % based off the shorter side of display width and height -->
|
<!-- PiP minimum size, which is a % based off the shorter side of display width and height -->
|
||||||
<fraction name="config_pipShortestEdgePercent">40%</fraction>
|
<fraction name="config_pipShortestEdgePercent">40%</fraction>
|
||||||
|
|
||||||
|
<!-- Show PiP enter split icon, which allows apps to directly enter splitscreen from PiP. -->
|
||||||
|
<bool name="config_pipEnableEnterSplitButton">false</bool>
|
||||||
|
|
||||||
<!-- Animation duration when using long press on recents to dock -->
|
<!-- Animation duration when using long press on recents to dock -->
|
||||||
<integer name="long_press_dock_anim_duration">250</integer>
|
<integer name="long_press_dock_anim_duration">250</integer>
|
||||||
|
|
||||||
|
|||||||
@@ -104,8 +104,6 @@ public class PipMenuView extends FrameLayout {
|
|||||||
private static final float MENU_BACKGROUND_ALPHA = 0.3f;
|
private static final float MENU_BACKGROUND_ALPHA = 0.3f;
|
||||||
private static final float DISABLED_ACTION_ALPHA = 0.54f;
|
private static final float DISABLED_ACTION_ALPHA = 0.54f;
|
||||||
|
|
||||||
private static final boolean ENABLE_ENTER_SPLIT = true;
|
|
||||||
|
|
||||||
private int mMenuState;
|
private int mMenuState;
|
||||||
private boolean mAllowMenuTimeout = true;
|
private boolean mAllowMenuTimeout = true;
|
||||||
private boolean mAllowTouches = true;
|
private boolean mAllowTouches = true;
|
||||||
@@ -277,6 +275,8 @@ public class PipMenuView extends FrameLayout {
|
|||||||
boolean resizeMenuOnShow, boolean withDelay, boolean showResizeHandle) {
|
boolean resizeMenuOnShow, boolean withDelay, boolean showResizeHandle) {
|
||||||
mAllowMenuTimeout = allowMenuTimeout;
|
mAllowMenuTimeout = allowMenuTimeout;
|
||||||
mDidLastShowMenuResize = resizeMenuOnShow;
|
mDidLastShowMenuResize = resizeMenuOnShow;
|
||||||
|
final boolean enableEnterSplit =
|
||||||
|
mContext.getResources().getBoolean(R.bool.config_pipEnableEnterSplitButton);
|
||||||
if (mMenuState != menuState) {
|
if (mMenuState != menuState) {
|
||||||
// Disallow touches if the menu needs to resize while showing, and we are transitioning
|
// Disallow touches if the menu needs to resize while showing, and we are transitioning
|
||||||
// to/from a full menu state.
|
// to/from a full menu state.
|
||||||
@@ -297,7 +297,7 @@ public class PipMenuView extends FrameLayout {
|
|||||||
mDismissButton.getAlpha(), 1f);
|
mDismissButton.getAlpha(), 1f);
|
||||||
ObjectAnimator enterSplitAnim = ObjectAnimator.ofFloat(mEnterSplitButton, View.ALPHA,
|
ObjectAnimator enterSplitAnim = ObjectAnimator.ofFloat(mEnterSplitButton, View.ALPHA,
|
||||||
mEnterSplitButton.getAlpha(),
|
mEnterSplitButton.getAlpha(),
|
||||||
ENABLE_ENTER_SPLIT && mFocusedTaskAllowSplitScreen ? 1f : 0f);
|
enableEnterSplit && mFocusedTaskAllowSplitScreen ? 1f : 0f);
|
||||||
if (menuState == MENU_STATE_FULL) {
|
if (menuState == MENU_STATE_FULL) {
|
||||||
mMenuContainerAnimator.playTogether(menuAnim, settingsAnim, dismissAnim,
|
mMenuContainerAnimator.playTogether(menuAnim, settingsAnim, dismissAnim,
|
||||||
enterSplitAnim);
|
enterSplitAnim);
|
||||||
|
|||||||
Reference in New Issue
Block a user