mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
More bug fixes (#45)
Fixes: * Issue from #39 where pressing back from playback went back two screens instead of one * Sometimes having to click on a server twice to switch to it * Update UI when marking a single season as watched * Fix needing to press back twice to hide skip segment buttons * Fix skip intro/outro behaviors being swapped * Always attempt to save playback progress when stopping playback
This commit is contained in:
parent
95a74b73ff
commit
77aaa87126
6 changed files with 51 additions and 35 deletions
|
|
@ -135,6 +135,8 @@ class MainActivity : AppCompatActivity() {
|
|||
val initialDestination =
|
||||
if (server != null && user != null) {
|
||||
Destination.Home()
|
||||
} else if (server != null) {
|
||||
Destination.UserList
|
||||
} else {
|
||||
Destination.ServerList
|
||||
}
|
||||
|
|
@ -164,4 +166,11 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
if (navigationManager.backStack.lastOrNull() is Destination.Playback) {
|
||||
navigationManager.goBack()
|
||||
}
|
||||
super.onPause()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue