mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 19:11:49 +01:00
wrap unsub in pageholder in try
fixing another android 11 crash
This commit is contained in:
parent
e3e18ea775
commit
06ee5439d1
@ -288,7 +288,9 @@ class PagerPageHolder(
|
|||||||
}
|
}
|
||||||
// Keep the Rx stream alive to close the input stream only when unsubscribed
|
// Keep the Rx stream alive to close the input stream only when unsubscribed
|
||||||
.flatMap { Observable.never<Unit>() }
|
.flatMap { Observable.never<Unit>() }
|
||||||
.doOnUnsubscribe { openStream?.close() }
|
.doOnUnsubscribe {
|
||||||
|
try { openStream?.close() } catch (e: Exception) {}
|
||||||
|
}
|
||||||
.subscribe({}, {})
|
.subscribe({}, {})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user