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