mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Update available extesions whenever the screen is opened
This commit is contained in:
parent
cf5c816483
commit
32387cd034
2 changed files with 1 additions and 3 deletions
|
@ -132,9 +132,6 @@ class ExtensionManager(
|
|||
* Returns the relay of the available extensions as an observable.
|
||||
*/
|
||||
fun getAvailableExtensionsObservable(): Observable<List<Extension.Available>> {
|
||||
if (!availableExtensionsRelay.hasValue()) {
|
||||
findAvailableExtensions()
|
||||
}
|
||||
return availableExtensionsRelay.asObservable()
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ open class ExtensionPresenter(
|
|||
override fun onCreate(savedState: Bundle?) {
|
||||
super.onCreate(savedState)
|
||||
|
||||
extensionManager.findAvailableExtensions()
|
||||
bindToExtensionsObservable()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue