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:
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user