parent
030912bfc5
commit
449fffe933
|
@ -97,7 +97,11 @@ class Core(private val context: Context) {
|
||||||
// There's an active bundle with a snapshot: Feed it into the SessionManager.
|
// There's an active bundle with a snapshot: Feed it into the SessionManager.
|
||||||
snapshot.await()?.let {
|
snapshot.await()?.let {
|
||||||
try {
|
try {
|
||||||
|
val selected = sessionManager.selectedSession
|
||||||
sessionManager.restore(it)
|
sessionManager.restore(it)
|
||||||
|
selected?.let {
|
||||||
|
sessionManager.select(selected)
|
||||||
|
}
|
||||||
} catch (_: IllegalArgumentException) {
|
} catch (_: IllegalArgumentException) {
|
||||||
return@let
|
return@let
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue