Commit graph

2642 commits

Author SHA1 Message Date
TiA4f8R
e44495af9a Apply the requested changes and little improvements
Apply the requested changes, use ShareUtils.shareText to share an stream in the play queue and optimize imports for Java files, using Android Studio functionality.

Apply the requested changes and do little improvements
Apply the requested changes, use ShareUtils.shareText to share an stream in the play queue and optimize imports for Java files, using Android Studio functionality.
2021-01-16 13:23:42 +01:00
TiA4f8R
d2cb003585 External sharing improvements
Improve NewPipe's share on some devices + fix crash when no browser is set on some devices

Catching ActivityNotFoundException when trying to open the default browser
Use an ACTION_CHOOSER intent and put as an extra intent the intent to
open an URI / share an URI when no default app is set.

Add a LinkHelper class which set a custom action when clicking web links
in the description of a content. This class also helps to implement a confirmation dialog when trying to open web links in an external app.
2021-01-16 13:23:06 +01:00
Isira Seneviratne
0f66853a9a Convert AnimationUtils functions to extension functions. 2021-01-16 14:49:37 +05:30
Robin
d0ea0ea8b9 Merge pull request #5274 from vkay94/stream-segments
Add stream segments to player controls
2021-01-15 10:59:34 +01:00
Stypox
e693e9c985 Merge pull request #5418 from Isira-Seneviratne/Unify_constants
Combine the two Constants files into one file.
2021-01-15 09:20:08 +01:00
Isira Seneviratne
b69953f9f3 Combine the two Constants files into one file. 2021-01-15 12:13:47 +05:30
Isira Seneviratne
9e61da1398 Fix the crash that occurs on navigating back to the main fragment. 2021-01-15 06:54:20 +05:30
vkay94
c775ab64ef Add stream segments to player 2021-01-14 21:58:19 +01:00
Tobias Groza
1cc9179f39 Merge pull request #4939 from Atemu/dont-exit-fullscreen-on-rotation
VideoDetailFragment: Don't exit fullscreen on rotation in tablet UI
2021-01-14 16:25:51 +01:00
Stypox
8ad9661aff Merge pull request #5225 from XiangRongLin/extract_settings_import
Extract settings import
2021-01-14 15:18:36 +01:00
Stypox
747d629732 Merge pull request #4947 from Isira-Seneviratne/Convert_ExceptionUtils_to_extensions
Rewrite ExceptionUtils methods as extension functions.
2021-01-14 14:54:37 +01:00
Stypox
afa6b5c572 Merge pull request #4814 from Isira-Seneviratne/Use_view_binding_in_fragments
Use view binding in fragments.
2021-01-14 14:40:19 +01:00
Robin
32bd816147 Merge pull request #5371 from Stypox/merge-player
Merge player classes into a single one
2021-01-14 10:43:11 +01:00
Stypox
b191847331 Merge and rename into PlayQueueActivity 2021-01-14 10:25:48 +01:00
Stypox
c2d53bb072 Fix wrong speed indicator in queue activity 2021-01-14 10:25:48 +01:00
Stypox
3abdc9e987 Revert hiding detail fragment tabs when in fullscreen 2021-01-14 10:25:48 +01:00
Stypox
959622da38 Merge player classes into a single one 2021-01-14 10:25:44 +01:00
Isira Seneviratne
1dbd1b58e2 Use view binding in FeedGroupReorderDialog. 2021-01-14 11:16:08 +05:30
Isira Seneviratne
e7fed4245d Use view binding in FeedGroupDialog. 2021-01-14 11:16:07 +05:30
Isira Seneviratne
b34ae8b502 Use view binding in SubscriptionFragment. 2021-01-14 11:16:06 +05:30
Isira Seneviratne
c7582e9b23 Use view binding in FeedFragment. 2021-01-14 11:16:05 +05:30
Isira Seneviratne
a350d46344 Use view binding in SearchFragment. 2021-01-14 11:16:04 +05:30
Isira Seneviratne
220d97ba1b Use view binding in ChannelFragment. 2021-01-14 11:16:03 +05:30
Isira Seneviratne
5137c87cb5 Use view binding in DownloadDialog. 2021-01-14 11:16:01 +05:30
Isira Seneviratne
6e41282714 Use view binding in LicenseFragment. 2021-01-14 11:16:00 +05:30
Isira Seneviratne
839a4e08d2 Use view binding in MainFragment. 2021-01-14 11:15:58 +05:30
Isira Seneviratne
b9768516f0 Return ViewBinding instead of View in BaseListFragment's getListHeader() and getListFooter() methods. 2021-01-14 11:15:57 +05:30
Isira Seneviratne
9d322b9fdc Return ViewBinding instead of View in BaseLocalListFragment's getListHeader() and getListFooter() methods. 2021-01-14 11:15:54 +05:30
Robin
dca7d7a531 Merge pull request #5358 from XiangRongLin/testable_prettytime
Make Localization.relativeTime testable
2021-01-13 22:44:11 +01:00
Isira Seneviratne
bd7be70214 Use view binding (PlayerPopupCloseOverlayBinding) in VideoPlayerImpl. 2021-01-13 20:44:00 +01:00
Isira Seneviratne
000ddb0110 Use view binding (PlayerBinding) in VideoPlayer. 2021-01-13 20:43:56 +01:00
Tobias Groza
5bf5b040b7 Merge pull request #5310 from khimaros/list-play-kodi
add list item to play video on kodi
2021-01-13 17:02:56 +01:00
Isira Seneviratne
6d4931e77a Add extension functions that accept reified types. 2021-01-11 16:49:46 +05:30
Isira Seneviratne
4d59466977 Rewrite ExceptionUtils methods as extension functions. 2021-01-11 16:49:45 +05:30
bopol
b3dbd44db3 Merge remote-tracking branch 'upstream/dev' into sepiasearch 2021-01-10 15:53:20 +01:00
Robin
6a3bdf52cb Merge pull request #5331 from mbarashkov/hardware-keyboard-space-shortcut
In Fullscreen playback, toggle play/pause with hardware space button
2021-01-07 17:09:27 +01:00
Mikhail Barashkov
534dfa14dc When in Fullscreen playback mode, toggle play/pause with the hardware Space button. 2021-01-07 17:32:16 +02:00
XiangRongLin
6a03ac88d3 Make Localization.relativeTime testable
Problem is global state in static variable prettyTime. But for performance reasons on Android that is preferred.
Now allow injecting prettyTime dependency by making init function public.
2021-01-06 14:48:34 +01:00
XiangRongLin
417f791973 cleanup 2021-01-03 20:32:16 +01:00
XiangRongLin
7971a468f6 Fix ensureDbDirectoryExists 2021-01-03 20:32:16 +01:00
XiangRongLin
1e632c3d69 Extract settings file deletion 2021-01-03 20:32:16 +01:00
XiangRongLin
e7022ccc94 Remove subclasses from ContentSettingsManagerTest
ExportTest provides no value.
ImportTest creates temporary files even if not needed.
2021-01-03 20:32:16 +01:00
XiangRongLin
2a3198de66 Introduce NewPipeFileLocator class 2021-01-03 20:32:16 +01:00
XiangRongLin
85d43a34ab Move isValidZipFile to ZipHelper 2021-01-03 20:32:16 +01:00
XiangRongLin
09d7c2289c Adjust ExportTest to new DI with FileLocator 2021-01-03 20:32:16 +01:00
XiangRongLin
c3e0db628b Introduce NewPipeFileLocator class
It handles locating specific NewPipe files based on the home directory of the app.
2021-01-03 20:32:16 +01:00
XiangRongLin
2327fa7351 Extract import database logic in ContentSettingsManager 2021-01-03 20:32:16 +01:00
khimaros
f218a99c38 pass serviceId instead of item, reduce duplication 2021-01-02 11:24:33 -08:00
Isira Seneviratne
55c770cd1b Use Objects.requireNonNull(). 2021-01-02 09:36:33 +05:30
Stypox
3ff50a604f Merge pull request #5221 from B0pol/notifications
Dynamically get package name
2021-01-01 18:05:43 +01:00