Commit graph

175 commits

Author SHA1 Message Date
litetex
6b000b04d2 Removed the "(beta)"-tag from services (#8637) 2022-07-24 15:57:23 +03:00
litetex
c32fd9a20c Changed the code accordingly
+ Removed some unused code
2022-07-15 19:55:19 +02:00
litetex
4a4ca3c18e Clean up pre-Lollipop checks 2022-07-13 19:02:24 +02:00
TacoTheDank
77ca2a0a18 Use simpler DrawerLayout method 2022-04-14 16:50:28 -04:00
Stypox
6ead95b5d2 Merge branch 'dev' into pr2335 2022-03-19 22:29:10 +01:00
TacoTheDank
141ad361b0 Annotate some NonNulls, some lint cleaning 2022-03-18 13:15:44 -04:00
TacoTheDank
9a8889c826 Migrate CheckForNewAppVersion to Worker (and rename it) 2022-03-03 13:26:57 -05:00
TacoTheDank
f2fec326e5 Migrate CheckForNewAppVersion to JobIntentService 2022-03-03 13:24:12 -05:00
TacoTheDank
36c69cb3d6 Move utility methods out of CheckForNewAppVersion 2022-03-03 13:19:06 -05:00
Stypox
c70713a925 Merge branch 'dev' into pr2335 2021-12-31 19:20:18 +01:00
TobiGr
0ec61b6276 Reduce power consumption
Only schedule the chek for new streams if the user enaled the check. Cancel the worker when the user disables the notifications.
2021-12-10 23:52:37 +01:00
Stypox
5583f71a8e Replace ErrorActivity with ErrorUtil 2021-12-04 10:36:36 +01:00
litetex
ce6a34e5eb Fixed typos 2021-11-02 23:22:59 +01:00
TobiGr
8e3a7fcfc7 Merge remote-tracking branch 'origin/dev' into notifications-1 2021-11-02 07:56:09 +01:00
vhouriet
e6db2b70f8 Change check for updates button to trigger a version check 2021-10-26 20:47:12 +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
TobiGr
fecdab9897 Fix new version check still occassionally started in background 2021-10-17 12:55:06 +02:00
TobiGr
dbd91d15b7 Merge remote-tracking branch 'origin/dev' into notifications 2021-10-14 21:15:43 +02:00
TobiGr
2affa4a1c3 Merge branch 'master' into dev 2021-10-12 20:03:42 +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
f9f59642f3 Deduplicated drawer code in MainActivity 2021-10-09 16:37:34 +02:00
Koitharu
f0d919e4a3 Refactor FeedLoadService to use it within the notification worker 2021-09-07 13:30:26 +03:00
Vasiliy
51d972eeb9 Notifications about new streams 2021-09-07 13:30:16 +03:00
TacoTheDank
789d536964 Update some AndroidX libraries 2021-07-21 19:31:41 -04:00
evermind
61a54d9a64 convert PlayerHolder to Singleton, handle context within, bugfix ServiceConnection leak
- bugfix: have ServiceConnection created only once!

- select the context within the PlayerHolder to start, stop, bind or unbind the service
  -> we have to make sure the Service is started AND stopped within the same context
  -> so let PlayerHolder be the one to select the context

- remove removeListener() and replace the call with setListener(null)
- Compatibility: use ContextCompat.startForegroundService instead of startService()
2021-07-06 12:31:26 +02:00
TacoTheDank
cece4c1252 Add super.onRequestPermissionsResult where missing 2021-06-15 22:08:41 -04:00
TobiGr
9a8cadcf18 Suppress a warning 2021-06-05 16:13:12 +02:00
krlvm
a8de222577 Fix Dark elements in Light Theme 2021-03-27 17:46:05 +03:00
krlvm
c509ecac47 Migrate to DayNight Theme 2021-03-26 23:08:25 +03:00
Stypox
22c92f1fb3 Completely remove return activity, now outdated 2021-03-12 23:21:54 +01:00
Stypox
9dc583da87 Optimize imports and solve checkstyle issues 2021-03-12 23:21:53 +01:00
Stypox
0ea6b4928c Add report/solve-recaptcha button in error panel
It will be shown even when nothing could be loaded not due to a network error, and the user can choose to ignore or report it.

Also improve error reporting arguments
Also completely refactor error activity
Also improve some code here and there
2021-03-12 23:21:49 +01:00
Stypox
bb398189d6 Move all error-related classes into error package 2021-03-07 17:49:28 +01:00
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
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
959622da38 Merge player classes into a single one 2021-01-14 10:25:44 +01: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
TobiGr
295dcf8b77 [media.ccc.de] Fix service color
Caused by changing service name in TeamNewPipe/NewPipeExtractor#472
2020-12-23 19:58:09 +01:00
Isira Seneviratne
1364b4c2e7 Use view binding in MainActivity. 2020-12-19 04:19:57 +05:30
Isira Seneviratne
3712843a78 Use ActivityCompat.recreate(). 2020-12-15 13:55:05 +05:30
mhmdanas
de2e4722ad Fix typos 2020-12-07 13:35:37 +03:00
TacoTheDank
290751ba78 Correct some other small lints 2020-11-19 18:54:27 -05:00
Stypox
265896a07e Fix switching to main player when MainActivity is closed 2020-11-08 10:00:28 +01:00
Stypox
2379041125 Open mini player if player running on app open 2020-11-08 10:00:28 +01:00
Stypox
72f25383bd Unify all ways of opening VideoDetailFragment 2020-11-08 10:00:27 +01: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
TacoTheDank
61c10ad427 Use AndroidX preference 2020-09-06 12:52:42 +02:00
wb9688
25b56bf5e4 Use final where possible 2020-08-16 10:25:09 +02:00