Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9855618 authored by Jacqueline Bronger's avatar Jacqueline Bronger
Browse files

Fix TvPipMenuActionButton not found

TvPipMenuActionButton has recently been renamed to
TvWindowMenuActionButton. Changes to the TV PiP menu structure
partially reverted those changes.

Bug: 241744433
Bug: 243766829
Test: manual - starting a PiP on TV works again
Change-Id: I80a53bbeaee8a96b272a90ac60cc81dc6b146418
parent f86af64d
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -68,30 +68,30 @@
                    android:layout_width="@dimen/pip_menu_button_wrapper_margin"
                    android:layout_height="@dimen/pip_menu_button_wrapper_margin"/>

                <com.android.wm.shell.pip.tv.TvPipMenuActionButton
                <com.android.wm.shell.common.TvWindowMenuActionButton
                    android:id="@+id/tv_pip_menu_fullscreen_button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/pip_ic_fullscreen_white"
                    android:text="@string/pip_fullscreen" />

                <com.android.wm.shell.pip.tv.TvPipMenuActionButton
                <com.android.wm.shell.common.TvWindowMenuActionButton
                    android:id="@+id/tv_pip_menu_close_button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/pip_ic_close_white"
                    android:text="@string/pip_close" />

                <!-- More TvPipMenuActionButtons may be added here at runtime. -->
                <!-- More TvWindowMenuActionButtons may be added here at runtime. -->

                <com.android.wm.shell.pip.tv.TvPipMenuActionButton
                <com.android.wm.shell.common.TvWindowMenuActionButton
                    android:id="@+id/tv_pip_menu_move_button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/pip_ic_move_white"
                    android:text="@string/pip_move" />

                <com.android.wm.shell.pip.tv.TvPipMenuActionButton
                <com.android.wm.shell.common.TvWindowMenuActionButton
                    android:id="@+id/tv_pip_menu_expand_button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
@@ -154,7 +154,7 @@
        android:background="@drawable/tv_pip_menu_border"/>

    <!-- Move menu -->
    <com.android.wm.shell.pip.tv.TvPipMenuActionButton
    <com.android.wm.shell.common.TvWindowMenuActionButton
        android:id="@+id/tv_pip_menu_done_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
+2 −2
Original line number Diff line number Diff line
@@ -73,8 +73,8 @@ public class TvWindowMenuActionButton extends RelativeLayout implements View.OnC

    @Override
    public void setOnClickListener(OnClickListener listener) {
        // We do not want to set an OnClickListener to the TvPipMenuActionButton itself, but only to
        // the ImageView. So let's "cash" the listener we've been passed here and set a "proxy"
        // We do not want to set an OnClickListener to the TvWindowMenuActionButton itself, but only
        // to the ImageView. So let's "cash" the listener we've been passed here and set a "proxy"
        // listener to the ImageView.
        mOnClickListener = listener;
        mButtonView.setOnClickListener(listener != null ? this : null);