WIP: Comment out old player

This just does an initial commenting pass to remove all references to
the old player from the video fragment, so that it won’t interfere
with FrankenPipe.
This commit is contained in:
Profpatsch 2024-12-04 18:59:52 +01:00
parent d9d6a5609c
commit c013a3ed65
2 changed files with 656 additions and 645 deletions

View File

@ -598,110 +598,110 @@
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
<RelativeLayout <!-- <RelativeLayout-->
android:id="@+id/overlay_layout" <!-- android:id="@+id/overlay_layout"-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="match_parent" <!-- android:layout_height="match_parent"-->
android:alpha="0.9" <!-- android:alpha="0.9"-->
android:background="?attr/windowBackground"> <!-- android:background="?attr/windowBackground">-->
<ImageButton <!-- <ImageButton-->
android:id="@+id/overlay_thumbnail" <!-- android:id="@+id/overlay_thumbnail"-->
android:layout_width="62dp" <!-- android:layout_width="62dp"-->
android:layout_height="60dp" <!-- android:layout_height="60dp"-->
android:layout_alignParentStart="true" <!-- android:layout_alignParentStart="true"-->
android:background="@color/transparent_background_color" <!-- android:background="@color/transparent_background_color"-->
android:gravity="center_vertical" <!-- android:gravity="center_vertical"-->
android:paddingLeft="@dimen/video_item_search_padding" <!-- android:paddingLeft="@dimen/video_item_search_padding"-->
android:paddingRight="@dimen/video_item_search_padding" <!-- android:paddingRight="@dimen/video_item_search_padding"-->
android:scaleType="fitCenter" <!-- android:scaleType="fitCenter"-->
tools:ignore="ContentDescription" /> <!-- tools:ignore="ContentDescription" />-->
<LinearLayout <!-- <LinearLayout-->
android:id="@+id/overlay_metadata_layout" <!-- android:id="@+id/overlay_metadata_layout"-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="60dp" <!-- android:layout_height="60dp"-->
android:layout_toStartOf="@+id/overlay_buttons_layout" <!-- android:layout_toStartOf="@+id/overlay_buttons_layout"-->
android:layout_toEndOf="@+id/overlay_thumbnail" <!-- android:layout_toEndOf="@+id/overlay_thumbnail"-->
android:clickable="true" <!-- android:clickable="true"-->
android:focusable="true" <!-- android:focusable="true"-->
android:gravity="center_vertical" <!-- android:gravity="center_vertical"-->
android:orientation="vertical" <!-- android:orientation="vertical"-->
android:theme="@style/ContrastTintTheme" <!-- android:theme="@style/ContrastTintTheme"-->
tools:ignore="RtlHardcoded"> <!-- tools:ignore="RtlHardcoded">-->
<org.schabi.newpipe.views.NewPipeTextView <!-- <org.schabi.newpipe.views.NewPipeTextView-->
android:id="@+id/overlay_title_text_view" <!-- android:id="@+id/overlay_title_text_view"-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:ellipsize="marquee" <!-- android:ellipsize="marquee"-->
android:fadingEdge="horizontal" <!-- android:fadingEdge="horizontal"-->
android:marqueeRepeatLimit="marquee_forever" <!-- android:marqueeRepeatLimit="marquee_forever"-->
android:scrollHorizontally="true" <!-- android:scrollHorizontally="true"-->
android:singleLine="true" <!-- android:singleLine="true"-->
android:textAppearance="?android:attr/textAppearanceLarge" <!-- android:textAppearance="?android:attr/textAppearanceLarge"-->
android:textSize="@dimen/video_item_search_title_text_size" <!-- android:textSize="@dimen/video_item_search_title_text_size"-->
tools:ignore="RtlHardcoded" <!-- tools:ignore="RtlHardcoded"-->
tools:text="The Video Title LONG very LONVideo Title LONG very LONG" /> <!-- tools:text="The Video Title LONG very LONVideo Title LONG very LONG" />-->
<org.schabi.newpipe.views.NewPipeTextView <!-- <org.schabi.newpipe.views.NewPipeTextView-->
android:id="@+id/overlay_channel_text_view" <!-- android:id="@+id/overlay_channel_text_view"-->
android:layout_width="match_parent" <!-- android:layout_width="match_parent"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:ellipsize="marquee" <!-- android:ellipsize="marquee"-->
android:fadingEdge="horizontal" <!-- android:fadingEdge="horizontal"-->
android:marqueeRepeatLimit="marquee_forever" <!-- android:marqueeRepeatLimit="marquee_forever"-->
android:scrollHorizontally="true" <!-- android:scrollHorizontally="true"-->
android:singleLine="true" <!-- android:singleLine="true"-->
android:textAppearance="?android:attr/textAppearanceSmall" <!-- android:textAppearance="?android:attr/textAppearanceSmall"-->
android:textSize="@dimen/video_item_search_uploader_text_size" <!-- android:textSize="@dimen/video_item_search_uploader_text_size"-->
tools:text="The Video Artist LONG very LONG very Long" /> <!-- tools:text="The Video Artist LONG very LONG very Long" />-->
</LinearLayout> <!-- </LinearLayout>-->
<LinearLayout <!-- <LinearLayout-->
android:id="@+id/overlay_buttons_layout" <!-- android:id="@+id/overlay_buttons_layout"-->
android:layout_width="wrap_content" <!-- android:layout_width="wrap_content"-->
android:layout_height="60dp" <!-- android:layout_height="60dp"-->
android:layout_alignParentEnd="true" <!-- android:layout_alignParentEnd="true"-->
android:gravity="center_vertical" <!-- android:gravity="center_vertical"-->
android:theme="@style/ContrastTintTheme" <!-- android:theme="@style/ContrastTintTheme"-->
tools:ignore="RtlHardcoded"> <!-- tools:ignore="RtlHardcoded">-->
<ImageButton <!-- <ImageButton-->
android:id="@+id/overlay_play_queue_button" <!-- android:id="@+id/overlay_play_queue_button"-->
android:layout_width="40dp" <!-- android:layout_width="40dp"-->
android:layout_height="match_parent" <!-- android:layout_height="match_parent"-->
android:background="?attr/selectableItemBackground" <!-- android:background="?attr/selectableItemBackground"-->
android:contentDescription="@string/title_activity_play_queue" <!-- android:contentDescription="@string/title_activity_play_queue"-->
android:scaleType="center" <!-- android:scaleType="center"-->
android:src="@drawable/ic_list" <!-- android:src="@drawable/ic_list"-->
tools:ignore="RtlHardcoded" /> <!-- tools:ignore="RtlHardcoded" />-->
<ImageButton <!-- <ImageButton-->
android:id="@+id/overlay_play_pause_button" <!-- android:id="@+id/overlay_play_pause_button"-->
android:layout_width="40dp" <!-- android:layout_width="40dp"-->
android:layout_height="match_parent" <!-- android:layout_height="match_parent"-->
android:background="?attr/selectableItemBackground" <!-- android:background="?attr/selectableItemBackground"-->
android:contentDescription="@string/pause" <!-- android:contentDescription="@string/pause"-->
android:focusable="true" <!-- android:focusable="true"-->
android:focusedByDefault="true" <!-- android:focusedByDefault="true"-->
android:scaleType="center" <!-- android:scaleType="center"-->
android:src="@drawable/ic_play_arrow" /> <!-- android:src="@drawable/ic_play_arrow" />-->
<ImageButton <!-- <ImageButton-->
android:id="@+id/overlay_close_button" <!-- android:id="@+id/overlay_close_button"-->
android:layout_width="48dp" <!-- android:layout_width="48dp"-->
android:layout_height="match_parent" <!-- android:layout_height="match_parent"-->
android:background="?attr/selectableItemBackground" <!-- android:background="?attr/selectableItemBackground"-->
android:contentDescription="@string/close" <!-- android:contentDescription="@string/close"-->
android:paddingRight="8dp" <!-- android:paddingRight="8dp"-->
android:scaleType="center" <!-- android:scaleType="center"-->
android:src="@drawable/ic_close" <!-- android:src="@drawable/ic_close"-->
tools:ignore="RtlSymmetry" /> <!-- tools:ignore="RtlSymmetry" />-->
</LinearLayout> <!-- </LinearLayout>-->
</RelativeLayout> <!-- </RelativeLayout>-->
</FrameLayout> </FrameLayout>