mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-09 15:22:13 -04:00
launcher v2: performance optimizations
- Use ListView in all tab - use filesystem cache to speed up first launch - apply highlights to visible models
This commit is contained in:
@@ -25,6 +25,9 @@ function findPrevNonHeaderIndex(flatModel, startIndex) {
|
||||
}
|
||||
|
||||
function getSectionBounds(flatModel, sectionId) {
|
||||
if (flatModel._sectionBounds && flatModel._sectionBounds[sectionId])
|
||||
return flatModel._sectionBounds[sectionId];
|
||||
|
||||
var start = -1, end = -1;
|
||||
for (var i = 0; i < flatModel.length; i++) {
|
||||
if (flatModel[i].isHeader && flatModel[i].section?.id === sectionId) {
|
||||
|
||||
Reference in New Issue
Block a user