mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 02:49:18 +01:00
Update available extesions whenever the screen is opened
This commit is contained in:
parent
cf5c816483
commit
32387cd034
@ -132,9 +132,6 @@ class ExtensionManager(
|
|||||||
* Returns the relay of the available extensions as an observable.
|
* Returns the relay of the available extensions as an observable.
|
||||||
*/
|
*/
|
||||||
fun getAvailableExtensionsObservable(): Observable<List<Extension.Available>> {
|
fun getAvailableExtensionsObservable(): Observable<List<Extension.Available>> {
|
||||||
if (!availableExtensionsRelay.hasValue()) {
|
|
||||||
findAvailableExtensions()
|
|
||||||
}
|
|
||||||
return availableExtensionsRelay.asObservable()
|
return availableExtensionsRelay.asObservable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ open class ExtensionPresenter(
|
|||||||
override fun onCreate(savedState: Bundle?) {
|
override fun onCreate(savedState: Bundle?) {
|
||||||
super.onCreate(savedState)
|
super.onCreate(savedState)
|
||||||
|
|
||||||
|
extensionManager.findAvailableExtensions()
|
||||||
bindToExtensionsObservable()
|
bindToExtensionsObservable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user