Commit Graph
10880 Commits
Author SHA1 Message Date
57eaa1bbe1 Apply review
Co-Authored-By:  Audric V <74829229+AudricV@users.noreply.github.com>
2023-09-18 23:22:32 +02:00
TobiGrandStypox 109d06b4bb Deduplicate code to initialize ClickListeners on playlist controls
Add the separate utility class PlayButtonHelper to handle the initialization of the listeners.
The ClickListeners on playlist controls had different behaviours. This commit fixes that.

The commit also refactors the way how the app determines whether it is started for the first time. The previous version was not clean and recent in this PR caused it to fail.
2023-09-18 23:22:32 +02:00
AudricVandStypox 0d9910cbbe Fix SubscriptionManagerTest tests
The breakage of these tests is related to the channel tabs changes.

The testRememberRecentStreams test method has been removed, as it doesn't seem
to be relevant anymore to managing subscriptions.
2023-09-18 23:22:32 +02:00
AudricVandStypox 8fbc8ffc7c Remove unneeded German translation 2023-09-18 23:22:32 +02:00
AudricVandStypox f2ee3859ab Hide the upload date element on the About tab
This empty element should be always hidden for this tab, as there is no upload
date available for channels.
2023-09-18 23:22:32 +02:00
AudricVandStypox 89dc44be61 Always show the About tab and support having no description 2023-09-18 23:22:32 +02:00
TobiGrandStypox 6ab8716e69 Extract actual feed loading code into separate method
Increase readability
2023-09-18 23:22:32 +02:00
TobiGrandStypox 5c7c382323 Add missing @Override annotations to setupMetadata() implementations 2023-09-18 23:22:32 +02:00
Stypox 78b4b9441e Update NewPipeExtractor and adapt imports 2023-09-18 23:22:32 +02:00
Stypox 9e55014a13 Fix wrongly themed channel header
Since it is embedded in the app bar and has red as background color, it should be themed in the same way as the toolbar.
2023-09-18 23:22:32 +02:00
Stypox 6f23b56b06 Use consistent name for livestreams tab in settings keys 2023-09-18 23:22:32 +02:00
Stypox 1519527356 Fix loading feed when a channel tab is empty 2023-09-18 23:22:32 +02:00
Stypox 6b3a178f2a Show snackbar with feed loading errors 2023-09-18 23:22:32 +02:00
Stypox 604419dd1f Make channel banner placeholder match YouTube's size
YouTube's "Desktop Max" thumbnails are 2560x423, while our previous placeholder banner was 2550x427. The extractor actually returns a lower resolution "Desktop Max" banner at 1060x175, but the ratio wrt 2560x423 is off by ~0.1%

The PNG was optimized with OptiPNG
2023-09-18 23:22:32 +02:00
Stypox c48e702a50 Improve placeholder channel banner handling
Now the placeholder gets hidden if there is no banner url or the user disabled images, to save space
2023-09-18 23:22:32 +02:00
Stypox 1061bce4f3 Add avatar and bannner URLs to channel About tab 2023-09-18 23:22:32 +02:00
Stypox 013d513450 Add space above channel description (About tab) 2023-09-18 23:22:32 +02:00
ThetaDevandStypox dca32efadf add channel banner placeholder 2023-09-18 23:22:32 +02:00
ThetaDevandStypox 28d952a643 feat: filter fetched channel tabs 2023-09-18 23:22:32 +02:00
ThetaDevandStypox a2a717bd49 update NPE 2023-09-18 23:22:32 +02:00
ThetaDevandStypox 753a92055c feat: add playlist controls to channel tab 2023-09-18 23:22:32 +02:00
Stypox 371f986773 Fix some code smells 2023-09-18 23:22:32 +02:00
Stypox a1e8b9be4e Fix channel tabs in main page setting title themselves 2023-09-18 23:22:32 +02:00
Stypox c076a0f771 Channels are now an Info
The previous "main" tab is now just a normal tab returned in getTabs().
Various part of the code that used to handle channels as ListInfo now either take the first (playable, i.e. with streams) tab (e.g. the ChannelTabPlayQueue), or take all of them combined (e.g. the feed).
2023-09-18 23:22:32 +02:00
ThetaDevandStypox dfbd39e898 fix: limit channel header height 2023-09-18 23:22:32 +02:00
ThetaDevandStypox b5893f3fa3 fix: notification menu option disappears when switching tabs 2023-09-18 23:22:32 +02:00
Stypox e3614cb932 Move channel header to collapsible app bar 2023-09-18 23:22:32 +02:00
ThetaDevandStypox 193c3e5b3d fix: NPE in ChannelFragment::onSaveInstanceState 2023-09-18 23:22:32 +02:00
ThetaDevandStypox c03c344f49 refactor: rename ChannelInfo to ChannelAbout
fix: localize about tab name
2023-09-18 23:22:32 +02:00
ThetaDevandStypox 25e3031830 cleanup: remove empty constructor from ChannelFragment 2023-09-18 23:22:31 +02:00
ThetaDevandStypox b7911a8fd8 remove fragment_channel_info 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 88384dc35e update extractor 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 39b4ed082c refactor: common code from ChannelInfo/Description -> BaseInfoFragment 2023-09-18 23:22:31 +02:00
ThetaDevandStypox d87aa23ae0 update NewPipeExtractor 2023-09-18 23:22:31 +02:00
ThetaDevandStypox be548dcb52 fix: channel tab title not being set 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 4357a34339 fix: ChannelFragment: save last tab 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 2c03ba204e refactor: adjustments to updated tab extractor API 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 2c98d079de fix: cache channel data 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 16cd47fa2e fix: missing album tab key 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 74a8bfba93 feat: add album tab 2023-09-18 23:22:31 +02:00
ThetaDevandStypox c929f00456 fix: remember selected channel tab on screen rotation 2023-09-18 23:22:31 +02:00
ThetaDevandStypox bb062f07f9 feat: add option to hide channel tabs 2023-09-18 23:22:31 +02:00
ThetaDevandStypox c3d1e75a8f fix: scrollable channel description 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 506e3724a6 fix: add progress spinners 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 4859ab67d4 feat: prettier channel info page 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 6d84d19520 fix: handle unsupported content 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 8627efd0a1 fix: get notified menu option on all tabs 2023-09-18 23:22:31 +02:00
ThetaDevandStypox 6d13cf5e71 feat: add channel tabs 2023-09-18 23:22:31 +02:00
7e2ab0d384 Improved downloading experience (#10407)
* added LoadingDialog for improving download experience

* [LoadingDialog] Apply some review comments and make title customizable.

* removed permission handling from loading Dialog

* fix checks

* remove <p> Tag from first sentence

---------

Co-authored-by: rishabaggarwal <Rishabaggarwal@sharechat.com>
Co-authored-by: TobiGr <tobigr@users.noreply.github.com>
2023-09-18 05:24:03 +05:30
Isira SeneviratneandGitHub b1ab261890 Merge pull request #10248 from Isira-Seneviratne/NIO_downloads
Improve the download helpers using the Java 7 NIO API.
2023-09-17 21:09:02 +05:30