Update available extesions whenever the screen is opened

This commit is contained in:
inorichi 2018-02-24 15:38:19 +01:00
parent cf5c816483
commit 32387cd034
2 changed files with 1 additions and 3 deletions

View File

@ -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()
} }

View File

@ -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()
} }