From ee3028e67db997d1be23b34646768a70f518575c Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Sat, 11 Apr 2020 18:09:33 +0200 Subject: [PATCH] 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. --- .../com/topjohnwu/magisk/ui/module/ModuleViewModel.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt index 454492b50..ff19f06e8 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt @@ -95,13 +95,13 @@ class ModuleViewModel( val adapter = adapterOf>() val items = MergeObservableList>() .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> {