1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-11 08:12:09 -04:00

settings: restore notifyHorizontalBarChanged

This commit is contained in:
bbedward
2026-02-24 19:42:04 -05:00
parent 8bb3ee5f18
commit 05713cb389
2 changed files with 38 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ Singleton {
function registerWidget(widgetId, screenName, widgetRef) {
if (!widgetId || !screenName || !widgetRef)
return;
if (typeof widgetRegistry !== "object" || widgetRegistry === null)
widgetRegistry = ({});
if (!widgetRegistry[widgetId])
widgetRegistry[widgetId] = {};
@@ -29,6 +31,8 @@ Singleton {
function unregisterWidget(widgetId, screenName) {
if (!widgetId || !screenName)
return;
if (typeof widgetRegistry !== "object" || widgetRegistry === null)
return;
if (!widgetRegistry[widgetId])
return;