-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Option to hide fully watched videos from History page #13260 #13275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
3e7cd92
8f6d6a6
c8fb724
8c296ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,37 +5,74 @@ | |
| android:layout_height="wrap_content" | ||
| android:orientation="vertical"> | ||
|
|
||
| <RelativeLayout | ||
| android:id="@+id/sortButton" | ||
| android:layout_width="wrap_content" | ||
| <LinearLayout | ||
| android:layout_width="match_parent" | ||
|
Comment on lines
+8
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it necessary to add new LinearLayout (especially taking into account nested views performance considerations)? I am not sure but it seems to me that you could just expand existing RelativeLayout (?) (It is not a "suggestion" because I am not fully sure by myself)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well actually the onclick listener for toggle There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. Not sure why comment didn't appear before 🤔. Makes sense. But you could do like done in |
||
| android:layout_height="wrap_content" | ||
| android:background="?attr/selectableItemBackground" | ||
| android:clickable="true" | ||
| android:focusable="true"> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/sortButtonIcon" | ||
| android:layout_width="48dp" | ||
| android:layout_height="28dp" | ||
| android:layout_alignParentLeft="true" | ||
| android:layout_centerVertical="true" | ||
| android:layout_marginLeft="12dp" | ||
| android:layout_marginRight="12dp" | ||
| android:src="@drawable/ic_filter_list" | ||
| tools:ignore="ContentDescription,RtlHardcoded" /> | ||
|
|
||
| <org.schabi.newpipe.views.NewPipeTextView | ||
| android:id="@+id/sortButtonText" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="50dp" | ||
| android:layout_toRightOf="@id/sortButtonIcon" | ||
| android:gravity="left|center" | ||
| android:text="@string/title_most_played" | ||
| android:textAppearance="?android:attr/textAppearanceLarge" | ||
| android:textSize="15sp" | ||
| android:textStyle="bold" | ||
| tools:ignore="RtlHardcoded" /> | ||
| </RelativeLayout> | ||
| android:baselineAligned="false" | ||
| android:orientation="horizontal"> | ||
|
|
||
| <RelativeLayout | ||
| android:id="@+id/sortButton" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:layout_weight="1" | ||
| android:background="?attr/selectableItemBackground" | ||
| android:clickable="true" | ||
| android:focusable="true"> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/sortButtonIcon" | ||
| android:layout_width="48dp" | ||
| android:layout_height="28dp" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_centerVertical="true" | ||
| android:layout_marginStart="12dp" | ||
| android:layout_marginEnd="12dp" | ||
| android:src="@drawable/ic_filter_list" | ||
| tools:ignore="ContentDescription" /> | ||
|
|
||
| <org.schabi.newpipe.views.NewPipeTextView | ||
| android:id="@+id/sortButtonText" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="50dp" | ||
| android:layout_toEndOf="@id/sortButtonIcon" | ||
| android:gravity="start|center_vertical" | ||
| android:text="@string/title_most_played" | ||
| android:textSize="15sp" | ||
| android:textStyle="bold" /> | ||
| </RelativeLayout> | ||
|
|
||
| <RelativeLayout | ||
| android:id="@+id/fullyWatchedFilterButton" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:layout_weight="1" | ||
| android:background="?attr/selectableItemBackground" | ||
| android:clickable="true" | ||
| android:focusable="true"> | ||
|
|
||
| <CheckBox | ||
| android:id="@+id/fullyWatchedFilterButtonCheckBox" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentStart="true" | ||
| android:layout_centerVertical="true" | ||
| android:layout_marginStart="12dp" | ||
| android:layout_marginEnd="12dp" | ||
| android:checked="true"/> | ||
|
|
||
| <org.schabi.newpipe.views.NewPipeTextView | ||
| android:id="@+id/fullyWatchedFilterButtonText" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="50dp" | ||
| android:layout_toEndOf="@id/fullyWatchedFilterButtonCheckBox" | ||
| android:gravity="start|center_vertical" | ||
| android:text="@string/title_hide_watched" | ||
| android:textSize="15sp" | ||
| android:textStyle="bold" /> | ||
| </RelativeLayout> | ||
|
|
||
| </LinearLayout> | ||
|
|
||
| <include | ||
| android:id="@+id/playlist_control" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note: there is
StreamStateEntity.isFinishedbut it is another entity. Method usesStreamStatisticsEntryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay.. I didn't know that.. Will refactor the code..