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

Commit 2f27e357 authored by Jacqueline Bronger's avatar Jacqueline Bronger
Browse files

Fix TV PiP custom action style

Bug: 269156537
Test: manual - open PiP with custom close action -> close button should
be red (darker when not focused).

Change-Id: I4ae7f7b0b13446d29572fa93faffd575c23e8364
parent fbc06111
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,5 +17,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners android:radius="@dimen/tv_window_menu_button_radius" />
    <solid android:color="@color/tv_window_menu_icon_bg" />
    <solid android:color="@android:color/white" />
</shape>
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -70,6 +70,8 @@ public class TvWindowMenuActionButton extends RelativeLayout {
            setTextAndDescription(textResId);
        }
        typedArray.recycle();

        setIsCustomCloseAction(false);
    }

    /**
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ public class TvPipCustomAction extends TvPipAction {
        }
        button.setImageIconAsync(mRemoteAction.getIcon(), mainHandler);
        button.setEnabled(isCloseAction() || mRemoteAction.isEnabled());
        button.setIsCustomCloseAction(isCloseAction());
    }

    PendingIntent getPendingIntent() {
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ public class TvPipSystemAction extends TvPipAction {
        button.setTextAndDescription(mTitleResource);
        button.setImageResource(mIconResource);
        button.setEnabled(true);
        button.setIsCustomCloseAction(false);
    }

    PendingIntent getPendingIntent() {