playback: implement "safe" slider wrapper

Implement a safe slider wrapper that does not crash with invalid values
as often.

Slider is a terrible component that is not designed with Auxio's
use-case in the slightest. Instead of gracefully degrading with invalid
values, it just crashes the entire app, which is horrible for UX.

Since SeekBar is a useless buggy version-specific sh******ed mess too,
we have no choice but to wrap Slider in a safe view layout that
hopefully hacks with the input enough to not crash the app when doing
simple seeking actions.

I hate android so much.

Resolves #140.
This commit is contained in:
OxygenCobalt
2022-05-27 14:34:14 -06:00
parent 852630ab38
commit c6d7d8fe39
12 changed files with 201 additions and 211 deletions
+3
View File
@@ -2,6 +2,9 @@
## dev [v2.3.1, v2.4.0, or v3.0.0]
#### What's Fixed
- Fixed crash when seeking to the end of a track as the track changed to a track with a lower duration
## v2.3.0
#### What's New