generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(youtube): sponsorblock improvements (#1557)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
- Loading branch information
1 parent
04a2acc
commit b5d712a
Showing
10 changed files
with
345 additions
and
239 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
...atches/youtube/layout/sponsorblock/bytecode/fingerprints/NextGenWatchLayoutFingerprint.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 27 additions & 3 deletions
30
src/main/resources/sponsorblock/host/layout/youtube_controls_layout.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/sponsorblock_button" android:padding="@dimen/controls_overlay_action_button_padding" android:layout_width="@dimen/controls_overlay_action_button_size" android:layout_height="@dimen/controls_overlay_action_button_size" android:layout_marginTop="2dp" android:src="@drawable/ic_sb_logo" android:layout_alignParentTop="true" android:layout_alignWithParentIfMissing="true" android:layout_marginEnd="4dp" android:layout_toStartOf="@+id/player_additional_view_container" style="@style/YouTubePlayerButton"/> | ||
<com.google.android.libraries.youtube.common.ui.TouchImageView android:id="@+id/voting_button" android:padding="@dimen/controls_overlay_action_button_padding" android:layout_width="@dimen/controls_overlay_action_button_size" android:layout_height="@dimen/controls_overlay_action_button_size" android:layout_marginTop="2dp" android:src="@drawable/ic_sb_voting" android:layout_alignParentTop="true" android:layout_alignWithParentIfMissing="true" android:layout_marginEnd="4dp" android:layout_toStartOf="@+id/sponsorblock_button" style="@style/YouTubePlayerButton"/> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<com.google.android.libraries.youtube.common.ui.TouchImageView | ||
android:id="@+id/sb_sponsorblock_button" | ||
style="@style/YouTubePlayerButton" | ||
android:layout_width="@dimen/controls_overlay_action_button_size" | ||
android:layout_height="@dimen/controls_overlay_action_button_size" | ||
android:layout_alignWithParentIfMissing="true" | ||
android:layout_alignParentTop="true" | ||
android:layout_marginTop="2dp" | ||
android:layout_marginEnd="4dp" | ||
android:layout_toStartOf="@+id/player_additional_view_container" | ||
android:padding="@dimen/controls_overlay_action_button_padding" | ||
android:src="@drawable/ic_sb_logo" /> | ||
|
||
<com.google.android.libraries.youtube.common.ui.TouchImageView | ||
android:id="@+id/sb_voting_button" | ||
style="@style/YouTubePlayerButton" | ||
android:layout_width="@dimen/controls_overlay_action_button_size" | ||
android:layout_height="@dimen/controls_overlay_action_button_size" | ||
android:layout_alignWithParentIfMissing="true" | ||
android:layout_alignParentTop="true" | ||
android:layout_marginTop="2dp" | ||
android:layout_marginEnd="4dp" | ||
android:layout_toStartOf="@+id/sb_sponsorblock_button" | ||
android:padding="@dimen/controls_overlay_action_button_padding" | ||
android:src="@drawable/ic_sb_voting" /> | ||
</RelativeLayout> |
Oops, something went wrong.