mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-10 15:52:58 -04:00
settings: restore notifyHorizontalBarChanged
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user