From 041c9b9027ada57e1871c5a92a97f014f92734d4 Mon Sep 17 00:00:00 2001 From: Ikram Gabiyev Date: Sun, 4 Sep 2022 08:14:28 +0000 Subject: [PATCH] Deactivate touch target for splitscreen button Remove ripple after touching the splitscreen button (with id of android:id="@+id/enter_split" defined in pip_menu.xml) by setting the ImageButton setEnabled to true in PipMenuView.java Test: atest SystemUITests Test: manually, reproduced steps in the bug listed Bug: 239613989 Change-Id: I105966feb22a0ccc5f11b59848c81f9ba682c3eb --- .../Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java index 1958157fc3194..979b7c7dc31f4 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java @@ -207,6 +207,9 @@ public class PipMenuView extends FrameLayout { } }); + // this disables the ripples + mEnterSplitButton.setEnabled(false); + findViewById(R.id.resize_handle).setAlpha(0); mActionsGroup = findViewById(R.id.actions_group);