Commit Graph
2977 Commits
Author SHA1 Message Date
Alexander Capehart 99a527983b service: break up
Break up the monster AuxioService into sub-classes, keeping just the
major lifecycle and music stuff in AuxioService for now (which will
likely be split out itself eventually)
2024-04-10 19:18:04 -06:00
Alexander Capehart 5b8518a567 playback: move most ops to player
This allows me to handle foreign MediaItem events easily. Not tested,
don't have time.
2024-04-10 10:05:20 -06:00
Alexander Capehart 05101c0e08 service: implement onGetItem
Should round out the rest of the MediaSession interface I need. Now
just have to hook up to Android Auto.
2024-04-09 22:44:30 -06:00
Alexander Capehart 48275c4698 service: add search functionality
I cannot tell if this actually works yet.
2024-04-09 22:28:32 -06:00
Alexander Capehart e9a4b99aa5 service: dead code removal 2024-04-09 15:35:36 -06:00
Alexander Capehart e926a54890 build: bump media3 2024-04-09 15:34:30 -06:00
Alexander Capehart 62d3c2dfb1 service: unify foreground management 2024-04-09 15:27:56 -06:00
Alexander Capehart 7503accada playback: handle media item playback 2024-04-09 15:17:24 -06:00
Alexander Capehart 64b9557793 playback: always enable skipping 2024-04-08 21:15:15 -06:00
Alexander Capehart 08e00c7fb1 playback: use custom service lifecycle 2024-04-08 21:15:04 -06:00
Alexander Capehart 481c647342 build: bump media3 2024-04-08 21:14:40 -06:00
Alexander Capehart 94e29c0a1b build: upgrade deps 2024-04-08 21:14:22 -06:00
Alexander Capehart 04ea6834fb playback: rearchitecture around media3 (prototype)
Nowhere near complete in any capacity.
2024-04-07 23:25:53 -06:00
Alexander Capehart d27d99be53 build: bump media 2024-04-07 23:25:53 -06:00
Alexander Capehart 6491dddc2b build: bump to 3.4.3
Bump to version 3.4.3 (44).
2024-04-07 23:25:53 -06:00
Alexander Capehart da07be26f4 playback: re-add replaygain off mode
It was honestly foolish for me to recommend retagging.

Resolves #746.
2024-04-07 23:25:53 -06:00
Alexander Capehart dc51c84c54 home: handle playback decision event
Forgot to add this.

Resolves #734.
2024-04-07 23:25:53 -06:00
Alexander Capehart a920da3fbd build: bump media 2024-04-07 23:25:53 -06:00
unrenowned b075f8ec51 playback: fix playNext wraparound with Repeat All
ExoPlayer method for fetching next media item respects Repeat All, which
on the last song of a queue causes playNext to wrap around and insert
the songs at the start of the queue. New code fetches next song as if
repeat were turned off, so the songs will always be added to the end of
the queue.
2024-04-07 23:25:53 -06:00
unrenowned e0352a105a playback: fix playNext crash on last song of queue
Fixes OxygenCobalt/Auxio#735. ExoPlayer method for fetching next media
item returns C.INDEX_UNSET (-1) when used on the last song of a queue,
which is not a valid index for ExoPlayer.addMediaItems(). New code just
adds songs to the end of the queue if there isn't a next song.
2024-04-07 23:25:53 -06:00
Alexander Capehart 261edf6c65 info: update changelog 2024-04-07 23:25:53 -06:00
Alexander Capehart 8221e98401 playback: fix add to queue again 2024-04-07 23:25:53 -06:00
Alexander Capehart f5bc31a00f home: fix crash on music updates 2024-04-07 23:25:53 -06:00
Alexander Capehart 2a0624f860 playback: fix more state restore issues
They just keep coming. I hate how complicated this system is.
2024-04-07 23:25:53 -06:00
Alexander Capehart 2f36fcfb45 build: bump to 3.4.2
Bump to version 3.4.2.
2024-04-07 23:25:53 -06:00
Alexander Capehart 6d6b1665e5 all: reformat 2024-04-07 23:25:52 -06:00
Alexander Capehart 3ca9b515cf widget: fix wafer cover setup
Apparently:
1. Some OEMs don't actually autocrop to rounded corners
2. I was not correctly using the right corner radius attributes in the
first place, making it inconsistent.

Let's fix that.

Closes #730
2024-04-07 23:25:52 -06:00
Alexander Capehart dbfe9927bf playback: fix broken state restore
That didn't properly handle when the index was invalid and kept stale
song entries.

Resolves #723.
2024-04-07 23:25:52 -06:00
Alexander Capehart b6f89de88d playback: fix crash w/add to queue
Again, a two-fold problem:
- Was not properly giving the right StateAck to the state holder
- ShuffleOrder not properly handling the index given when adding to
queue internally

Resolves #727.
2024-04-07 23:25:52 -06:00
Alexander Capehart 86b7ef8d5c music: fix crash on playlist add
Caused by the new state restoration code being bugged and applying on
playlist changes, then combined with the playlist code not properly
switching to the main context when dispatching a library update.
2024-04-07 23:25:52 -06:00
Alexander Capehart 22a22a883f service: unify playback and indexer
Playback and indexing now occur in the same service through a new
bridge called AuxioService.

AuxioService contains the existing service instances as Fragment
implementations, and then forwards typical service events to them
(albeit this will drift more and more as I continue to deal with
lifecycle issues).

This should be the first step in enabling true service independence,
as it means that the service will now immediately initialize and load
music as soon as possible.
2024-04-07 23:25:52 -06:00
Alexander Capehart 9f66a05f2d Merge pull request #751 from OxygenCobalt/hotfixes
Version 3.4.3
2024-04-04 20:53:01 +00:00
Alexander Capehart c35ede67b0 build: bump media 2024-04-04 14:47:30 -06:00
Alexander Capehart d7ea08cccd build: bump to 3.4.3
Bump to version 3.4.3 (44).
2024-04-04 14:47:04 -06:00
Alexander Capehart 124fe18850 playback: re-add replaygain off mode
It was honestly foolish for me to recommend retagging.

Resolves #746.
2024-04-04 12:31:42 -06:00
Alexander Capehart 6e05ef371c home: handle playback decision event
Forgot to add this.

Resolves #734.
2024-04-04 12:11:23 -06:00
Alexander Capehart 13a3a57365 build: bump media 2024-04-04 11:33:58 -06:00
Alexander Capehart 821f043cfe Merge pull request #748 from unrenowned/bugfix/playnext-crash
Fix Crashes/Bugs when Play Next is used at the end of a queue
2024-03-29 17:06:07 +00:00
unrenowned 1d9dc34549 playback: fix playNext wraparound with Repeat All
ExoPlayer method for fetching next media item respects Repeat All, which
on the last song of a queue causes playNext to wrap around and insert
the songs at the start of the queue. New code fetches next song as if
repeat were turned off, so the songs will always be added to the end of
the queue.
2024-03-29 14:40:42 +00:00
unrenowned c6b960466b playback: fix playNext crash on last song of queue
Fixes OxygenCobalt/Auxio#735. ExoPlayer method for fetching next media
item returns C.INDEX_UNSET (-1) when used on the last song of a queue,
which is not a valid index for ExoPlayer.addMediaItems(). New code just
adds songs to the end of the queue if there isn't a next song.
2024-03-29 14:27:18 +00:00
Alexander Capehart 317c83a4d1 info: add paypal to funding
An alternative method that might be easier to use than GH sponsors.
2024-03-25 13:35:43 -06:00
+4 e452875d59 Translations update from Hosted Weblate (#715)
* Translated using Weblate (Czech)

Currently translated at 100.0% (43 of 43 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/cs/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (43 of 43 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/es/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (43 of 43 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/uk/

* Translated using Weblate (Punjabi)

Currently translated at 100.0% (43 of 43 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/pa/

* Translated using Weblate (Hindi)

Currently translated at 100.0% (43 of 43 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/hi/

* Translated using Weblate (Belarusian)

Currently translated at 100.0% (43 of 43 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/be/

* Translated using Weblate (French)

Currently translated at 100.0% (313 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/fr/

* Translated using Weblate (Italian)

Currently translated at 98.0% (307 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/it/

* Translated using Weblate (Finnish)

Currently translated at 92.9% (291 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/fi/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (44 of 44 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/zh_Hans/

* Translated using Weblate (Interlingua)

Currently translated at 42.1% (132 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/ia/

* Translated using Weblate (German)

Currently translated at 100.0% (313 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/de/

* Translated using Weblate (Russian)

Currently translated at 100.0% (44 of 44 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/ru/

* Translated using Weblate (Korean)

Currently translated at 100.0% (313 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/ko/

* Translated using Weblate (Korean)

Currently translated at 100.0% (44 of 44 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/ko/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 99.0% (310 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/pt_BR/

* Translated using Weblate (Interlingua)

Currently translated at 56.2% (176 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/ia/

* Translated using Weblate (Interlingua)

Currently translated at 59.4% (186 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/ia/

* Translated using Weblate (German)

Currently translated at 100.0% (44 of 44 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/de/

* Translated using Weblate (Interlingua)

Currently translated at 61.6% (193 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/ia/

* Translated using Weblate (French)

Currently translated at 100.0% (44 of 44 strings)

Translation: Auxio/Metadata
Translate-URL: https://hosted.weblate.org/projects/auxio/metadata/fr/

* Translated using Weblate (Russian)

Currently translated at 100.0% (313 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/ru/

* Translated using Weblate (Belarusian)

Currently translated at 100.0% (313 of 313 strings)

Translation: Auxio/Strings
Translate-URL: https://hosted.weblate.org/projects/auxio/strings/be/

---------

Co-authored-by: Fjuro <fjuro@alius.cz>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: Сергій <sergiy.goncharuk.1@gmail.com>
Co-authored-by: ShareASmile <aapshergill@gmail.com>
Co-authored-by: kopatych <maxklezovich@gmail.com>
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org>
Co-authored-by: Software In Interlingua <softinterlingua@gmail.com>
Co-authored-by: min7-i <min7-i@users.noreply.hosted.weblate.org>
Co-authored-by: Макар Разин <makarrazin14@gmail.com>
Co-authored-by: Yurical <yurical1@outlook.com>
Co-authored-by: santiago046 <comehere665@gmail.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2024-03-12 20:49:23 -06:00
Alexander Capehart b8b741b4c0 Update bug-crash-report.yml 2024-03-01 07:42:11 -07:00
Alexander Capehart 287270fcdf info: add sample file to bug report template
Should hopefully prevent a situation when someone will report a bug and then ghost me when I ask for a sample file.
2024-03-01 07:41:00 -07:00
Alexander Capehart c872f7890c Merge pull request #732 from OxygenCobalt/hotfixes
Version 3.4.2
2024-02-28 23:12:21 -07:00
Alexander Capehart 24faeef8f3 info: update changelog 2024-02-28 23:11:44 -07:00
Alexander Capehart c42da2240c playback: fix add to queue again 2024-02-28 23:08:09 -07:00
Alexander Capehart b43586c1ea home: fix crash on music updates 2024-02-28 23:00:20 -07:00
Alexander Capehart 399e181e39 playback: fix more state restore issues
They just keep coming. I hate how complicated this system is.
2024-02-28 22:58:35 -07:00
Alexander Capehart d83c1c5596 build: bump to 3.4.2
Bump to version 3.4.2.
2024-02-28 22:46:43 -07:00