mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-03 20:32:07 -04:00
Plugin items can set _preScored to signal a priority boost (e.g. recently used items). Previously _preScored was only respected when a search query was active, so no-query default lists always fell back to typeBonus+frecency scoring, making plugin-controlled ordering impossible. Change the condition from: if (query && item._preScored !== undefined) to: if (item._preScored !== undefined && (query || item._preScored > 900)) This respects _preScored in no-query mode only when the value exceeds 900 (the plugin typeBonus), which avoids changing behaviour for "all" mode items whose _preScored is set to 900-j by the controller (≤ 900). Items without _preScored set continue to use the existing typeBonus + frecency formula.
7.3 KiB
7.3 KiB