Commit graph

540 commits

Author SHA1 Message Date
Isira Seneviratne
db6b11ca95 Convert SavedState to Kotlin and use the Parcelize annotation. 2020-11-21 12:47:32 +05:30
TacoTheDank
290751ba78 Correct some other small lints 2020-11-19 18:54:27 -05:00
TacoTheDank
50b676e422 Lint: 'if' replaceable with 'switch' 2020-11-18 17:58:41 -05:00
TacoTheDank
0b41bd4699 Lint: 'size() == 0' replaceable with 'isEmpty()' 2020-11-18 17:54:16 -05:00
TacoTheDank
497e145c70 Lint: Make a bunch of stuff final 2020-11-18 17:50:00 -05:00
TacoTheDank
706188af82 Lint: Move declarations into assignments 2020-11-18 17:48:01 -05:00
Stypox
8c52a2712e [Regression] Fix videos added multiple times to detail fragment stack 2020-11-15 22:23:47 +01:00
Stypox
265896a07e Fix switching to main player when MainActivity is closed 2020-11-08 10:00:28 +01:00
Stypox
55b1b8f5f0 Fix tapping on video thumbnail does nothing 2020-11-08 10:00:28 +01:00
Stypox
429ba53016 More fixes with opening VideoDetailFragment 2020-11-08 10:00:28 +01:00
Stypox
72f25383bd Unify all ways of opening VideoDetailFragment 2020-11-08 10:00:27 +01:00
Tobias Groza
4b8186ecd6 Merge pull request #4555 from Stypox/playqueue-crash
Fix NullPointerException in queue handling
2020-11-08 01:19:38 +01:00
Isira Seneviratne
a7e248d12b Switch to the Java 8 Date/Time API. 2020-11-05 15:02:51 +05:30
Isira Seneviratne
9a367f4d46 Use Collection.removeIf() instead of using Iterator.remove() to remove elements conditionally. 2020-11-01 14:44:07 +05:30
TacoTheDank
166cdd50f4 Push conditionals inside branch expressions 2020-10-31 15:57:26 -04:00
TacoTheDank
710a840de6 Simplify an if else 2020-10-31 15:57:01 -04:00
Stypox
f3e011bcf1 Fix NullPointerException in queue handling 2020-10-26 18:15:59 +01:00
bopol
ca029eba3f polish strings, fix build error 2020-10-26 17:01:55 +01:00
vkay94
d7547fb196 Fix PlaylistAppendDialog: Renamed method and replaced with Runnable 2020-10-23 09:44:26 +02:00
vkay94
0f720b6e97 Fix PlaylistAppendDialog showing when no local playlists exist 2020-10-23 09:44:26 +02:00
Tobias Groza
e7edc7605a Merge pull request #4354 from Stypox/restriction-strings
Improve age restriction and yt restricted content strings
2020-10-11 12:14:13 +02:00
Stypox
287f864fad Improve age restriction and yt restricted content strings 2020-10-11 12:06:36 +02:00
Stypox
0ab9784b1c Merge pull request #4463 from opusforlife2/confirm_queue_delete_one_track
Ask for confirmation before clearing queue even if only 1 video in it
2020-10-10 22:01:55 +02:00
opusforlife2
4450e6b89c Ask for confirmation before clearing queue...
Even when there is only one video in it.
2020-10-09 14:46:42 +00:00
Isira Seneviratne
3da55d9f40 Use ContextCompat.getSystemService() and the Context.getSystemService() extension function. 2020-10-09 08:52:05 +05:30
vkay94
ab7af976e9 Enqueue: Removed unneeded dialog-entries and strings + adjustments 2020-10-06 17:22:12 +02:00
vkay94
994b8369b8 Enqueue: Replaced specific StreamDialogEntry items with one
The enqueue options won't be shown in the dialogs if the Player service is not running. When it's running one item (enqueue stream) will be shown and enqueues the item into the Player type which is currently selected.
2020-10-06 14:38:48 +02:00
Stypox
f3268d0ce8 Fix video detail controls visibility set inconsistently 2020-10-02 16:03:43 +02:00
Avently
9d7e9c79ca Added comments and improved the code 2020-09-30 00:49:34 +03:00
Avently
94fe0d1a0c Player will be rebound when needed, prev/next/queue buttons, preserving paused state
- each time something starts to play in any player VideoDetailFragment will be started (if not yet started) and mini player will show up. It makes possible to see a playing stream in mini player even if the stream was started without using fragment or after player service was closed somehow
- play/next/queue buttons will be updated in realtime when stream was added/removed from queue instead of waiting for a onPlay/onPause action to happen
- when popup or background players start the stream will start playing only if paused state wasn't requested. Which means, for example, if a user opens popup it will be started when START_PAUSED is false. If, for example, the stream was played in main player and then popup was started the stream will still be playing, but if it was paused it still be paused in popup (or background) in APPEND_ONLY mode (but will be playing on new queue initialization)
2020-09-29 06:22:53 +03:00
Avently
8ffb4f5c79 Merged 'dev' branch 2020-09-27 18:02:31 +03:00
Avently
96881c44d3 Merged 'dev' branch 2020-09-27 15:04:20 +03:00
Avently
73eca41204 Fixed player's ZOOM mode for KitKat devices 2020-09-27 04:25:06 +03:00
Avently
4379fdb763 Changes for tablets and device's orientation behavior
- the app will not rotate the screen to portrait after video completes, it will just exit from fullscreen mode
- ability to rotate the orientation via fullscreen button from landscape to portrait when device has locked orientation in landscape
- ability to enter/exit to/from fullscreen on tablets with unlocked global orientation in portrait mode
2020-09-27 04:11:38 +03:00
TobiGr
0949453cb5 Remove "Detail Page" open action from share dialog under certain circumstances
With the new application workflow and unified player, video detail page and video player are the same activity. So show only one of these options based on whether autoplay is enabled or not, and show both if using external player
2020-09-26 21:58:34 +02:00
Avently
88aa5019f9 Merged 'dev' branch 2020-09-26 02:42:26 +03:00
Tobias Groza
955ddd0a44 Merge pull request #4246 from avently/preloading
Disabled preloading when switching streams
2020-09-25 21:22:31 +02:00
Stypox
59b47738f1 Fix deprecations, warnings and useless null checks in SearchFragment 2020-09-19 15:25:04 +02:00
Stypox
f528b92064 Improve search suggestion experience when remote ones can't be fetched
Do not show anything in case of network error (it can simply be ignored).
Show a snackbar otherwise, which still allows writing things into the search box.
2020-09-19 15:22:54 +02:00
Avently
0b4f8b33c5 Increased performance of the UI. main thread is not as busy as before 2020-09-17 23:42:35 +03:00
Avently
0b0fa13454 Correct exit from fullscreen in case of error or close from notification, 2020-09-17 19:01:20 +03:00
Avently
04dce7ee2e Hiding controls when orientation changes to landscape 2020-09-15 22:10:38 +03:00
Avently
0470e298df Perfect shadow 2020-09-15 19:50:46 +03:00
Avently
0d5cc050ef Reimagined player positioning 2020-09-15 14:43:43 +03:00
Avently
72c716c1b3 Android 11: transparent navigation and status bars 2020-09-14 11:30:41 +03:00
bopol
1f3a768f71 Merge remote-tracking branch 'upstream/dev' into unsupported-url-dialog 2020-09-12 23:19:18 +02:00
Avently
e3ba15e228 Small fixes of issues with old devices support, brightness, etc 2020-09-11 20:52:38 +03:00
Stypox
0c812c0680 Merge pull request #4154 from avently/video-placement
Prevent jumping of the player and wrong padding on devices with cutout
2020-09-08 19:47:09 +02:00
Avently
bef3b1b4fe Disabled preloading when switching streams 2020-09-07 19:34:10 +03:00
Stypox
974d0c6610 Revert to deprecated BEHAVIOR_SET_USER_VISIBLE_HINT in TabAdapter
Also added comment explaining why
2020-09-06 14:02:25 +02:00