mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
enh : reduce overhead by removing redundant loadFolder calls
This commit is contained in:
@@ -103,10 +103,6 @@ fun DrawerFolderPreferences(
|
||||
viewModel.setAction(Action.DEFAULT)
|
||||
}
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
viewModel.loadFolders()
|
||||
}
|
||||
|
||||
LoadingScreen(obj = folders, modifier = modifier.fillMaxWidth()) { items ->
|
||||
PreferenceLayoutLazyColumn(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
@@ -221,7 +217,7 @@ fun HandleActions(
|
||||
viewModel.updateFolderInfo(this, false)
|
||||
}
|
||||
bottomSheetHandler.hide()
|
||||
reloadHelper.recreate()
|
||||
reloadHelper.reloadGrid()
|
||||
viewModel.setAction(Action.SETTLE)
|
||||
loggedAction = "Updated folder: ${folderInfoHolder?.title}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user