Commit Graph

3268 Commits

Author SHA1 Message Date
ByteHamster 6b6753ad84
Hide 'reconnect' settings (#6367)
Android 12+ doesn't let us start the foreground service from an event
like "headset reconnected". Hide the corresponding settings and avoid
crashing.
2023-03-06 22:08:49 +01:00
ByteHamster 9cd59a6720
Support media resumption (#6350)
This fixes the disappearing media notification after pressing the play button.
2023-02-25 16:33:11 +01:00
ByteHamster 530165206b
Fix when playback is started from MediaSessionCompat.Callback (#6295)
In that case:
- The service does not go through onStartCommand, so it does not go to foreground state.
- The media session is already destroyed.

Now, create a new media session and definitely start foreground service when something is playing.
2023-02-02 00:06:53 +01:00
ByteHamster 731adeaf2c
Don't stop service between episodes (#6293) 2023-01-29 16:45:26 +01:00
ByteHamster 12793de604
Use rasterized icon on splash (#6287) 2023-01-28 11:43:35 +01:00
ByteHamster 63e9d7f696
Merge pull request #6265 from ByteHamster/fix_duplicate_name
Fix downloads when feeds with same name have items with the same name
2023-01-13 17:27:16 +01:00
ByteHamster d7bfe89b13
Branding upgrade (#6146) 2023-01-13 17:24:51 +01:00
ByteHamster 941ebbdc2b Fix downloads when feeds with same name have items with the same name 2023-01-08 21:52:41 +01:00
Vishnu Sanal T 88289d02ae
Possibility to remove a single episode from playback history (#6184) 2023-01-01 15:29:23 +01:00
ByteHamster 0776f232d3
Merge pull request #6247 from ByteHamster/rewrite-audio-focus
Rework audio focus handling
2022-12-20 21:18:48 +01:00
ByteHamster 670f26bb0e Rework audio focus handling
Instead of pausing the entire service, only pause media playback without
telling the service. This has the following advantages:
- It's faster
- The position does not change (because it does not need to seek)
- We can definitely resume (because we still have a foreground service)

Especially the last point is important on Android 12, where we couldn't
restart after an interruption because the service cannot be started.
2022-12-18 21:36:40 +01:00
ByteHamster d8d6f1c72f Remove support for Android 4.4 2022-12-18 15:01:59 +01:00
ByteHamster 1d251492b0 Add support for Material You tinted theme 2022-12-17 10:51:07 +01:00
ByteHamster 32ffb2d1e9 Show skip button even if 'continuous playback' is disabled
It can still be used to skip the rest of an episode and load the next
one into the notification/miniplayer. There is no reason to hide the
button and instead show no button at all.
2022-12-04 21:47:01 +01:00
Jared234 f91d536ab9
Fixed bug that causes "skip" button to be unresponsive (#6170) 2022-11-30 20:28:14 +01:00
ByteHamster 1c08543430 Highlight currently playing card 2022-11-30 19:55:43 +01:00
ByteHamster 6c4c51994d
Switch back to non-transparent navigation bar (#6111) 2022-11-27 12:42:42 +01:00
ByteHamster 807e09ecdd
Target API 31 (#6190) 2022-11-26 16:06:02 +01:00
LukasBrilla5 d585e37e11
Add button to refresh episode chapters (#6177) 2022-11-18 20:08:48 +01:00
ByteHamster d8a2dd5f83 Move preferences to a new module 2022-11-06 21:21:28 +01:00
ByteHamster b140d7297a Move DownloadService-Interface to new module 2022-11-06 12:28:30 +01:00
ByteHamster be8c8cef4d
Merge pull request #6176 from ByteHamster/decouple
Decouple some classes
2022-11-06 10:54:18 +01:00
ByteHamster 11292b598c Remove dependency from other classes to DownloadService 2022-11-05 20:44:53 +01:00
ByteHamster ae3971a58f No need to have other classes depend on the entire playback service when they just need one constant 2022-11-05 13:54:33 +01:00
ByteHamster 323149642a Decouple FeedItemUtil and PlaybackStatus 2022-11-05 13:19:41 +01:00
ByteHamster d08b9e196e Decouple sync service from other classes 2022-11-05 13:04:07 +01:00
ByteHamster 546c8841db
Merge pull request #6174 from ByteHamster/modularize-glide
Move Glide config to its own module
2022-11-05 12:50:13 +01:00
ByteHamster 70a847f6ba Remove dependency from MediaButtonReceiver to PlaybackService 2022-11-03 23:16:42 +01:00
ByteHamster 5b8cee0de0 Decouple restoring Playable from Preferences and storing position
Breaks dependency cycle
2022-11-03 23:04:48 +01:00
ByteHamster cd9845ed4c Make NetworkUtils less fat
Breaks dependency cycles
2022-11-03 22:49:33 +01:00
ByteHamster 6c1ec57bc1 Break dependency cycle
ClientConfig->HttpClient->UserAgentInterceptor->ClientConfig
2022-11-03 22:49:31 +01:00
ByteHamster c1fbb53805 Move Glide to its own module 2022-11-03 22:46:56 +01:00
ByteHamster 9b06bf0dc5
Merge pull request #6173 from ByteHamster/playbackservice-cleanup
PlaybackService cleanup
2022-11-03 21:35:18 +01:00
ByteHamster 6921d7162e Apply default RequestOptions globally instead of locally 2022-11-01 12:47:52 +01:00
ByteHamster 1e336ac0f8 No need to have a virtual method that is only used in one single instance 2022-11-01 12:06:21 +01:00
ByteHamster a836745079 Close video player when switching to audio 2022-11-01 12:06:21 +01:00
ByteHamster a29041cd4d No need to define INVALID_TIME multiple times 2022-11-01 12:06:13 +01:00
ByteHamster 17f2ebd7f2 Use normal pause/skip keycodes, not custom intent 2022-11-01 11:22:03 +01:00
Vishnu Sanal T c171ab6823
Remove 'seconds' and 'hours' options from sleep timer (#6148) 2022-10-29 17:26:14 +02:00
ByteHamster e260056f08
Merge pull request #6166 from ByteHamster/less-noisy-glide
Do not print stacktrace for image loading errors
2022-10-29 11:54:50 +02:00
Tong Liu a87d660698
Fix Inbox not default screen when set as such (#6168) 2022-10-28 22:36:00 +02:00
ByteHamster edcf831346 Do not print stacktrace for image loading errors 2022-10-27 22:48:53 +02:00
ByteHamster cac231a461
Merge pull request #6153 from ByteHamster/fast-document-file
Speed up local folder refresh
2022-10-23 12:10:07 +02:00
ByteHamster c7e41c31b6 If file size and name are the same, just assume that the metadata is the same as well 2022-10-21 22:01:47 +02:00
ByteHamster 9624d8ce9e Speed up chapter parsing 2022-10-21 21:46:18 +02:00
ByteHamster 25dd4902ba Make loading DocumentFiles faster 2022-10-21 21:46:15 +02:00
ByteHamster 7d0b0e57ee Remove text colors from shownotes 2022-10-14 22:39:05 +02:00
ByteHamster 504002c48f
Merge pull request #6109 from ByteHamster/home-only-greater-zero
Tweak Queue section on home screen
2022-10-14 19:03:09 +02:00
ByteHamster b0b95f0a05 Reorder queue section when pressing play, not when pausing 2022-10-04 19:48:47 +02:00
ByteHamster b90bfbd4dc Extend splash blue to navigation bar 2022-09-30 19:13:48 +02:00