Commit graph

2131 commits

Author SHA1 Message Date
OxygenCobalt
8551e90884
all: cleanup code
Cleanup unused resources and fix some code issues here and there.
2021-08-03 09:39:14 -06:00
OxygenCobalt
d3e738b973
widgets: add controls to minimal widget
Backtrack and add controls to the minimal widget, mostly for usability.
2021-08-03 09:05:20 -06:00
OxygenCobalt
8673995630
widgets: backport to <v31
Modify the minimal wdiget so that it can work on Android 11 and below.
Was not actually that hard, mostly changing layouts around all things
considered. This also splits up the default view and the main widget
views, which makes managing UI state much easier.
2021-08-02 08:57:35 -06:00
OxygenCobalt
ffebbc2839
playback: fix notification launch issue
Fix an accidental regression where PendingIntent.getBroadcast was
called for activities, causing the notification launch intent not
to work.
2021-08-01 19:24:08 -06:00
OxygenCobalt
d50d2f0b1e
ui: fix binding issues
Use viewLifecycleOwner for all fragments that rely on databinding. This
should solve some possible memory leaks, as viewLifecycleOwner is tied
to the lifecycle of the fragment views instead of the fragments them
selves.
2021-08-01 17:59:12 -06:00
OxygenCobalt
66be3da7e3
widgets: add minimal widget [#8]
Add the first widget implementation, the minimal widget. This took a
good 2 days of hacking and frustration to get the first prototype
working. And even then, its currently scoped to android 12 until I'm
able to port them. The implementation is still quite rough, but should
become manageable over time. More widgets will come.
2021-08-01 17:32:38 -06:00
OxygenCobalt
58bea1dda5
sort: fix sort bug with same-year album songs
Fix a problem where given two albums with the same year, like this:

Album 1 [2018]
- Song 1
- Song 2

Album 2 [2018]
- Song 3
- Song 4

getSortedArtistSongs would incorrectly drop songs that came from
any albums that came after Album 1, resulting in this:

Song 1 [Album 1]
Song 2 [Album 1]

This was caused by a quirk in toSortedMap that would drop any
map entries that corresponded to a previous sorted entry. We now
get and sort the entries directly instead, which fixes the issue.
2021-07-30 19:59:18 -06:00
OxygenCobalt
1a0ff53d67
about: prevent ui from being clipped in landscape
Fix an accidental regression in the about UI that caused it to be cut
off it landscape. It will now scroll.
2021-07-29 17:06:30 -06:00
OxygenCobalt
6d9c9f65c2
recycler: improve fast-scroller truncation
Make fast-scroller truncation more aggressive, mostly because on my new
ROM it seems like display calculations become a little wonky and cause
slight indicator cutoff. May as well add padding then so that
indicators [and the thumb by extension] actually fit and won't get
clipped.
2021-07-29 11:31:21 -06:00
OxygenCobalt
ec4ca16658
app: upgrade to android 12
Add preliminary compat for android 12 [API 31]. More changes may be
needed as time goes on, but its close enough to platform stability
to the point where its needed.
2021-07-29 10:49:18 -06:00
OxygenCobalt
cd0167405e
Version 1.4.1
Ready for version 1.4.1 of Auxio.
2021-07-29 10:02:16 -06:00
OxygenCobalt
9d04799345
prefs: make black theme default to off
The black theme's defaultValue attribute was set to true accidentally.
Fix that.
2021-07-29 09:56:26 -06:00
OxygenCobalt
cf67612042
chore: upgrade deps
Gradle -> 7.0.2
Android -> 7.0.0
Coil -> 1.3.0
Activity -> 1.3.0
Kotlin -> 1.5.21
2021-07-29 09:43:28 -06:00
OxygenCobalt
814232484d
Merge pull request #31 from qwerty287/fix-translation
Fix German translations
2021-07-23 15:54:28 +00:00
qwerty287
44570309ad
Fix German translations 2021-07-23 08:52:06 +02:00
OxygenCobalt
2e278aef8a
behavior: add option to pause when a song repeats
Add a new option to pause playback whenever a song loops [e.g while in
LoopMode.TRACK]. This does mean that we can no longer use exoplayer's
native looping system, but it doesn't seem to be that much of an issue.

Resolves #29.
2021-07-22 17:00:51 -06:00
OxygenCobalt
33332dbf6b
chore: upgrade deps
androidx activity -> 1.2.4
androidx fragment -> 1.3.5
androidx media -> 1.4.0
exoplayer -> 2.14.2
coil -> 1.3.0
2021-07-22 13:38:18 -06:00
OxygenCobalt
20d9951074
Merge pull request #28 from Poussinou/patch-1
Remove the IzzyOnDroid button from the README.
2021-07-16 22:04:57 +00:00
Poussinou
370e8042ec
Update README.md 2021-07-16 17:30:26 +02:00
OxygenCobalt
85081c385f
chore: upgrade dependencies
Yet another dependency upgrade churn:
Android Plugin -> 4.2.2
Material -> 1.4.0
Androidx Core -> 1.6.0

Apparently material deprecated a bunch of BottomNavigationView's stuff
for no good reason. Okay.
2021-07-12 10:43:05 -06:00
OxygenCobalt
07b16ec902
fastlane: add icon
It turns out F-Droid can't determine the icon of an app if it's
adaptive [#25]. Add an icon to the fastlane metadata so thats fixed.
2021-07-08 16:20:06 -06:00
OxygenCobalt
b88628f558
strings: reformat spanish translations
Reformat the new spanish [es] translations to line up with the rest of
the translation files.
2021-07-07 13:10:55 -06:00
OxygenCobalt
977deeef32
Merge pull request #23 from Tesphil/patch-1
Updated Spanish strings.
2021-07-07 17:04:29 +00:00
OxygenCobalt
5502b96c49
Merge branch 'offa-fdroid' into dev
Add an F-Droid link to the README
2021-07-06 19:46:38 -06:00
offa
2987f7c02e F-Droid link added. 2021-07-06 22:21:54 +02:00
Tesphil
60aafc6e4c
Updated Spanish strings.
I just... Updated the Spanish strings, I don't know if I did it right, it's my first time.
2021-07-05 20:26:20 -06:00
OxygenCobalt
eca8a992c5
Merge pull request #22 from offa/permission_doc
Add permission documentation to the README.md.
2021-07-02 08:59:43 -06:00
OxygenCobalt
fef5e4d9f9
style: improve black theme colors
Improve the black theme selection color by merging it with the dark
theme selection coler. This makes the selection color both more
noticable and reduces the style complexity that came from having to
manage two different selection colors.
2021-07-02 08:56:03 -06:00
OxygenCobalt
cb74196155
docs: remove access_network_state
Remove ACCESS_NETWORK_STATE from the README document, as it was
disabled in f1f2fcf.
2021-07-02 08:38:13 -06:00
OxygenCobalt
f1f2fcf41d
meta: remove access_network_state perm [#22]
ExoPlayer's online functionality will cause the library to request the
ACCESS_NETWORK_STATE permission. We don't need this since we use
ExoPlayer for local playback only. For simplicity [and to remove a
weird suspicious permission, we just disable it]
2021-07-02 08:32:38 -06:00
offa
f17bc00a00 docs: permission documentation 2021-07-01 21:18:06 +02:00
OxygenCobalt
7b5e817d3b
all: cleanup code
Cleanup the codebase in general:
- Remove useless resources
- Upgrade kotlin to 1.5.2
- Upgrade coil to 1.2.2
2021-06-26 19:53:57 -06:00
OxygenCobalt
d82952d88d
md: update project information
Update the README to update the current state of Auxio, uodate the
ADDITIONS document to reflect which features have been rejected,
and remove the black mode question from the FAQ.
2021-06-23 09:37:33 -06:00
OxygenCobalt
e25c91b49c
library: remove default sort option
Remove the default [a.k.a SortMode.NONE] option from the library view.
It was effectively useless in every single library mode and was
functionally equivelent to SortMode.ALPHA_DOWN. Other SortModes might
come to take it's place, but likely only for albums.
2021-06-19 10:10:28 -06:00
OxygenCobalt
5131db5383
library: add fast-scroller
Add a fast-scroller to the library view. This makes long lists of
items such as albums easier to scroll through, but also requires
pre-sorting of artists to make sure that unintended behavior does
not occur. A future commit may improve the sort options here so that
this does not need to occur.
2021-06-19 10:03:35 -06:00
OxygenCobalt
7adfb921fa
recycler: make fast scroller respond to changes
Make the fast scroller respond to changes in the RecyclerView data.
This again prepares it for use in the library with it's sorting and
item configuration.
2021-06-18 15:19:15 -06:00
OxygenCobalt
aebe279e95
about: re-add tagline to the about screen
Re-add the app tagline to the about screen. At some point during the
redesign it was lost.
2021-06-18 15:09:47 -06:00
OxygenCobalt
2f29950725
recycler: use article sort everywhere
Use the native MediaStore sort of using the characters after an article
[if present] everywhere when sorting is done. Yes, this is still dumb
and non-local, but if I want to add fast-scrolling to the library view
I will have to keep consistency across each sort.
2021-06-18 14:55:01 -06:00
OxygenCobalt
e7d3dd0a98
deps: upgrade deps
Dependency Upgrade Chore:
Fragment -> 1.3.5
ExoPlayer -> 2.14.1
RecyclerView -> 1.2.1
2021-06-16 13:00:52 -06:00
OxygenCobalt
5dc7b52fc3
style: add dialog black theme support
Make dialogs properly follow the black theme. This should complete the
black theme addition as now all parts of Auxio follow the new theme.
2021-06-11 13:54:54 -06:00
OxygenCobalt
381c0f0944
style: add popupmenu black theme support
Tack on some more themes to make popupmenu styles follow the new black
theme introduced in 68bdd0.
2021-06-11 13:33:16 -06:00
OxygenCobalt
68bdd0d929
style: add basic black theme
Finally add black theme support to Auxio. This is abit of a janky
implementation since I had to add an extra set of accents, but it
shouldn't be as big of a problem after the styles refactoring.
Support for black android components is not implemented yet, but
will be eventually.
2021-06-11 09:13:20 -06:00
OxygenCobalt
dc2157904a
styles: refactor styles
Completely refactor styles once again to improve resource sharing and
styling maintainability.
2021-06-11 08:13:52 -06:00
OxygenCobalt
9d39a2aaeb
songs: fix fast-scroll indicator bug
Fix an issue with fast-scroll indicator creation where titles that
began with "An" would not use the second word at the proper sort title.
2021-06-10 09:13:34 -06:00
OxygenCobalt
8eb301f983
ui: use new artist icon
Choose a new default artist icon that looks more functional and lines
up with the rest of the icons.
2021-06-05 14:52:01 -06:00
OxygenCobalt
c54790e24c
about: redesign ui
Completely redesign the about UI to remove its dependency on
bottomsheetdialogfragment. That object is such a hassle to deal with an
is the epitome of everything wrong with this horrible platform. This
design will enable further about extensions in the future.
2021-06-05 14:40:50 -06:00
OxygenCobalt
9aabfe2294
playback: make mediasession rely on exoplayer
Make PlaybackSessionConnector also take events from ExoPlayer as it
used to with MediaSessionConnector. This improves reliability
somewhat at the cost of making the code even more hideous.
2021-06-03 09:28:47 -06:00
OxygenCobalt
58eee7a891
playback: improve mediasession reliability
Fix some issues with PlaybackSessionConnector that resulted in the
position being stuck when a new song was played, alongside simplifying
the connector code to an extent.
2021-06-01 10:44:37 -06:00
OxygenCobalt
ab28fb6323
playback: add event handling to mediasession
Add event handling to the MediaSession. This completes the new
PlaybackSessionConnector class and possibly addresses the issue raised
in #20.
2021-06-01 10:16:30 -06:00
OxygenCobalt
1ddff8c6d3
playback: create custom mediasession connector
Create a custom session connector that connects between
PlaybackStateManager and MediaSession. The previous session connector
that was part of the exoplayer library turned out to cause bugs that
could cause the covert art not to show on the lock screen and to not
be recognized as proper player controls. This new connector
[once complete] should fix these issues.
2021-05-30 16:42:45 -06:00