Commit graph

3380 commits

Author SHA1 Message Date
TobiGr
86906e1abd Fix check wether the app's notifications are disabled via system settings
Add comments
Rename a few methods
2021-10-22 21:24:43 +02:00
Tobi
0a15251ec4 Merge pull request #7268 from TeamNewPipe/release/0.21.13
Release 0.21.13
- Fix playback resume
- Ensure that the service for new version checks is not started in background
2021-10-21 20:51:01 +02:00
TobiGr
d7bf370bfc Start service for update checks in onPastCreate() 2021-10-20 23:55:18 +02:00
Stypox
a707961ef4 Revert part of #6872 and fix playback resuming 2021-10-20 23:20:26 +02:00
litetex
f77455c518 Merge pull request #7149 from TacoTheDank/updateFragWorkaround
Update pager workaround code to Fragment 1.3.6
2021-10-20 19:44:35 +02:00
TacoTheDank
79165d349c Update pager workaround to Fragment 1.3.6 2021-10-19 17:39:38 -04:00
TacoTheDank
8f7a36dc48 Update RecyclerView & Groupie 2021-10-19 17:31:59 -04:00
TobiGr
e7b06ca4c7 comments & rename 2021-10-18 13:11:50 +02:00
TobiGr
fecdab9897 Fix new version check still occassionally started in background 2021-10-17 12:55:06 +02:00
TobiGr
dd2725ca62 [Player] Fix resuming playback
This was caused by #6872
2021-10-17 12:13:38 +02:00
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
TobiGr
edf900ccd2 Add a few comments and rename a few methods 2021-10-15 20:57: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
Tobi
2062174db3 Update app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java
Co-authored-by: litetex <40789489+litetex@users.noreply.github.com>
2021-10-15 20:22:12 +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
TobiGr
ad5e5cb808 Rename NotificationMode.ENABLED_DEFAULT to NotificationMode.ENABLED 2021-10-15 19:59:06 +02:00
TobiGr
dbd91d15b7 Merge remote-tracking branch 'origin/dev' into notifications 2021-10-14 21:15:43 +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
TobiGr
45d4391a6b Rename isStreamExist -> doesStreamExist 2021-10-11 23:20:52 +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
TobiGr
ebb49377ee Merge remote-tracking branch 'origin/dev' into notifications-1 2021-10-11 16:37:49 +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