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.
*/
fun getAvailableExtensionsObservable(): Observable<List<Extension.Available>> {
if (!availableExtensionsRelay.hasValue()) {
findAvailableExtensions()
}
return availableExtensionsRelay.asObservable()
}

View file

@ -29,6 +29,7 @@ open class ExtensionPresenter(
override fun onCreate(savedState: Bundle?) {
super.onCreate(savedState)
extensionManager.findAvailableExtensions()
bindToExtensionsObservable()
}