Commit graph

2957 commits

Author SHA1 Message Date
TacoTheDank
53cc6737bc Get rid of setUserVisibleHint 2021-10-16 15:33:45 -04:00
TiA4f8R
5e25566b67 Adress new requested changes 2021-10-16 15:32:56 +02:00
TiA4f8R
35401c0103 Adress requested changes and remove an unused return value in NewPipeTextViewHelper 2021-10-16 13:41:05 +02:00
TiA4f8R
648641341f Simplify code 2021-10-16 13:41:05 +02:00
TiA4f8R
4cd970fc97 Merge the Share process of the two classes into one
A new class has been added in the util package: NewPipeTextViewHelper.
It shares the selected text of a TextView with ShareUtils#shareText (with the created shareSelectedTextWithShareUtils static method).
Only this static method can be used by other classes, other methods are private.
2021-10-16 13:41:04 +02:00
TiA4f8R
1cfd513e25 Improve code of created views
Use the same logic as Android TextViews
2021-10-16 13:41:04 +02:00
TiA4f8R
098f781b05 Add JavaDocs on created views 2021-10-16 13:41:04 +02:00
TiA4f8R
ddc3916437 Use a custom EditText everywhere to be able to share with ShareUtils the selected text
This EditText class extends the AppCompatEditText class from androidx.

These changes (only in XML ressources) allow us to share the selected text by using ShareUtils.shareText, which opens the Android system chooser instead of the Huawei system chooser on EMUI devices.
2021-10-16 13:41:03 +02:00
TiA4f8R
a6bebe7b54 Use a custom TextView everywhere to be able to share with ShareUtils the selected text
This TextView class extends the AppCompatTextView class from androidx.

These changes (only in XML ressources) allow us to share the selected text by using ShareUtils.shareText, which opens the Android system chooser instead of the Huawei system chooser on EMUI devices.
2021-10-16 13:40:54 +02:00
litetex
660408e35b Merge pull request #7222 from ktprograms/queue-menu-channel-details
Added the 'Show Channel Details' menu item to the Queue long press menu
2021-10-15 20:28:18 +02:00
litetex
4989c06916 Fixed format of code 2021-10-15 20:18:52 +02:00
litetex
63b6e074a7 Improved documentation 2021-10-15 20:16:34 +02:00
ktprograms
d33d390250 Add reasoning for separate openChannelFragmentUsingIntent method 2021-10-14 09:51:25 +08:00
litetex
617cde9930 Merge pull request #7194 from KalleStruik/add-to-playlist-in-share
Add a "add to playlist" option in the share menu
2021-10-13 20:34:07 +02:00
TobiGr
2affa4a1c3 Merge branch 'master' into dev 2021-10-12 20:03:42 +02:00
litetex
446a9bb0ea Merge pull request #7224 from vhouriet/vhouriet_fix_check-background-player-type
Check if background player already active before displaying player toast
2021-10-12 19:47:50 +02:00
TobiGr
d17ece226a Move checking for new version to MainAcitvity
When the service is started from the Application class, the app might be still in the background. This is definetly not the case when MainActivity.onCreate() is called.

Fixes #7227
2021-10-12 16:45:01 +02:00
litetex
891867b38e Merge pull request #7215 from litetex/code-cleanup-drawer-main-activity
Deduplicated drawer code in MainActivity
2021-10-11 21:29:42 +02:00
litetex
1470d4d43e Merge pull request #7202 from vhouriet/vhouriet_bug_issue-6662
Fix clicking timestamp shows Toast "Playing in popup mode"
2021-10-11 21:20:26 +02:00
vhouriet
cbe10ab3ea Check player type before displaying background player toast 2021-10-11 19:41:22 +02:00
ktprograms
ea6e99eff9 Added the 'Show Channel Details' menu item to the Queue long press menu
Created a method in NavigationHelper that opens the channel fragment using an Intent to MainActivity instead of replacing fragments.
2021-10-11 14:47:37 +08:00
TobiGr
3a7f39d684 Simplify code and add annotations 2021-10-10 20:33:05 +02:00
Kalle Struik
5ab0946c70 Fix cursor color in PlaylistCreationDialog 2021-10-10 12:32:57 +02:00
litetex
3c4e392ce1 Add to playlist - Showing toast that this may take a moment 2021-10-09 18:47:36 +02:00
litetex
2361d32f75 Cleaned up PlaylistDialog-related code 2021-10-09 18:46:20 +02:00
litetex
f9f59642f3 Deduplicated drawer code in MainActivity 2021-10-09 16:37:34 +02:00
Robin
cf7cd4551e Fix crash on missing title when sharing livestream 2021-10-08 21:42:01 +02:00
vhouriet
fc5e090d03 Fix clicking timestamp shows Toast "Playing in popup mode"
Fixes #6662
2021-10-05 18:15:36 +02:00
litetex
bcf9ceaa83 Use the correct TAG in NavigationHelper 2021-10-03 22:04:34 +02:00
Kalle Struik
ff82c0e585 Set the theme for PlaylistCreationDialog explicitly. 2021-10-03 14:25:50 +02:00
Kalle Struik
6a97942a6e Rename the "append_playlist" string to "add_to_playlist" 2021-10-03 13:27:24 +02:00
Kalle Struik
dc999b4f71 Add a add to playlist option in the share menu. 2021-10-02 19:21:25 +02:00
Tobi
c1444b75cd Merge pull request #7176 from litetex/fix-progress-bar-end-not-synced
Fixed seekbar not completed after video end
2021-10-02 09:24:59 +02:00
Tobi
c95ac17837 Merge pull request #6980 from bravenewpipe/check-for-update-after-toggle-and-restart
resets the expire date for checking for updates
2021-10-02 09:07:05 +02:00
Tobi
2c50cc29f2 Add a comment 2021-10-02 08:53:03 +02:00
litetex
163ff5737b Merge pull request #7150 from TacoTheDank/groupieBump
Update Groupie library to 2.9.0
2021-09-30 21:26:58 +02:00
Tobi
d195c11bc5 Merge pull request #7178 from Redirion/dsblmdtnnelrealtekatv
Disable media tunneling on RealtekATV
2021-09-28 07:53:11 +02:00
Robin
18128ce364 Merge pull request #7166 from litetex/various-fixes-for-mediasession-player
Various fixes related to MediasessionManager
2021-09-27 23:45:38 +02:00
Robin
d1089d6252 Disable media tunneling on RealtekATV 2021-09-27 13:21:04 +02:00
Laksh
5d827623e2 Make requested changes 2021-09-27 01:45:33 +05:30
litetex
e9669884f5 Referenced issue in code 2021-09-26 20:58:49 +02:00
litetex
085990c609 Fixed progress bar not completing after video end 2021-09-26 20:50:24 +02:00
Laksh
4aa77b0145 Fix Settings import 2021-09-25 15:37:07 +05:30
litetex
9aaa75fd3d Improved streamType check and documentation 2021-09-25 10:31:42 +02:00
litetex
45a1900b27 Removed useless check for livestreams 2021-09-25 00:04:53 +02:00
litetex
2f5f052aa4 Reformatted MediaSessionManager code 2021-09-24 23:55:06 +02:00
litetex
b44e9ccd7f Fixed performance problems with mediaSessionManager
* Built on top of Redirons changes
* MediaSessionManager-Metadata get's only update when metadata changes - not every second as it only changes when the metadata changes
* Reworked mediasessionmanager
2021-09-24 23:40:12 +02:00
Robin
52a83f3f47 Two fixes for setMetadata 2021-09-24 23:28:55 +02:00
Nathan Schulzke
dfe72e0db1 Enable Mark as Watched in all the other playlist fragments. 2021-09-23 21:39:47 -06:00
TacoTheDank
b23e7a4134 Regenerate some drawables to their latest design 2021-09-22 23:38:01 -04:00