playback: actually fix controls not working

Turns out playback controls wouldn't actually work because the view
would detach but not the actual fragment, resulting in onCreateView
never being called and the entire system falling apart. This fixes
it by just giving PlaybackLayout the viewmodel instance it needs.
I'll need to release a hotfix for this issue since this is really
easy the trigger and really hard to fix unless you know why it
occurs. Android lifecycles suck so much.
This commit is contained in:
OxygenCobalt
2021-11-26 10:17:46 -07:00
parent 35eb07410d
commit 949d71dbd1
6 changed files with 59 additions and 120 deletions
+1 -2
View File
@@ -275,8 +275,7 @@ This module not only contains the playback system described above, but also mult
- `system` contains the system-facing playback system
The most important part of this module is `PlaybackLayout`, which is a custom `ViewGroup` that implements the playback bar and it's ability to
slide up into the full playback view. `MainFragment` controls this `ViewGroup`, more specifically the bar view, as it can't be an independent
fragment due to a couple of annoying reasons.
slide up into the full playback view. `MainFragment` controls this `ViewGroup`.
#### `.search`