1
0
Fork 0

For #2181 - Select session again after restoring (#2213)

master
Emily Kager 2019-05-01 18:23:15 -07:00 committed by Colin Lee
parent 030912bfc5
commit 449fffe933
1 changed files with 4 additions and 0 deletions

View File

@ -97,7 +97,11 @@ class Core(private val context: Context) {
// There's an active bundle with a snapshot: Feed it into the SessionManager.
snapshot.await()?.let {
try {
val selected = sessionManager.selectedSession
sessionManager.restore(it)
selected?.let {
sessionManager.select(selected)
}
} catch (_: IllegalArgumentException) {
return@let
}