Updated layout of modules screen

The modules will show updates at the top, active modules in the middle and finally remote modules at the bottom. The modules "install" button will be at the top of the "active" list.
This is done over usability concerns, as updates are more important than a list of installed modules.
This commit is contained in:
Viktor De Pasquale 2020-04-11 18:09:33 +02:00 committed by John Wu
parent d810e6c82d
commit ee3028e67d

View File

@ -95,13 +95,13 @@ class ModuleViewModel(
val adapter = adapterOf<ComparableRvItem<*>>()
val items = MergeObservableList<ComparableRvItem<*>>()
.insertList(itemsCoreOnly)
.insertItem(sectionActive)
.insertList(itemsInstalledHelpers)
.insertList(itemsInstalled)
.insertItem(InstallModule)
.insertItem(sectionUpdate)
.insertList(itemsUpdatableHelpers)
.insertList(itemsUpdatable)
.insertItem(sectionActive)
.insertList(itemsInstalledHelpers)
.insertItem(InstallModule)
.insertList(itemsInstalled)
.insertItem(sectionRemote)
.insertList(itemsRemote)!!
val itemBinding = itemBindingOf<ComparableRvItem<*>> {