Revert notification toolbar setting
It isn't a setting. Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
289b0c2b6a
commit
c7d8f3931f
3 changed files with 4 additions and 13 deletions
|
@ -211,15 +211,15 @@ const Notifier = {
|
|||
});
|
||||
|
||||
// update the info to localStorage for persistent settings
|
||||
if (persistent && SettingsStore.isLevelSupported(SettingLevel.DEVICE)) {
|
||||
return SettingsStore.setValue("notificationToolbarHidden", null, SettingLevel.DEVICE, hidden);
|
||||
if (persistent && global.localStorage) {
|
||||
global.localStorage.setItem("notifications_hidden", hidden);
|
||||
}
|
||||
},
|
||||
|
||||
isToolbarHidden: function() {
|
||||
// Check localStorage for any such meta data
|
||||
if (SettingsStore.isLevelSupported(SettingLevel.DEVICE)) {
|
||||
return SettingsStore.getValue("notificationToolbarHidden");
|
||||
if (global.localStorage) {
|
||||
return global.localStorage.getItem("notifications_hidden") === "true";
|
||||
}
|
||||
|
||||
return this.toolbarHidden;
|
||||
|
|
|
@ -236,8 +236,4 @@ export const SETTINGS = {
|
|||
default: true,
|
||||
controller: new AudioNotificationsEnabledController(),
|
||||
},
|
||||
"notificationToolbarHidden": {
|
||||
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
|
||||
default: false,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -45,8 +45,6 @@ export default class DeviceSettingsHandler extends SettingsHandler {
|
|||
return localStorage.getItem("notifications_body_enabled") === "true";
|
||||
} else if (settingName === "audioNotificationsEnabled") {
|
||||
return localStorage.getItem("audio_notifications_enabled") === "true";
|
||||
} else if (settingName === "notificationToolbarHidden") {
|
||||
return localStorage.getItem("notifications_hidden") === "true";
|
||||
}
|
||||
|
||||
return this._getSettings()[settingName];
|
||||
|
@ -68,9 +66,6 @@ export default class DeviceSettingsHandler extends SettingsHandler {
|
|||
} else if (settingName === "audioNotificationsEnabled") {
|
||||
localStorage.setItem("audio_notifications_enabled", newValue);
|
||||
return Promise.resolve();
|
||||
} else if (settingName === "notificationToolbarHidden") {
|
||||
localStorage.setItem("notifications_hidden", newValue);
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
const settings = this._getSettings();
|
||||
|
|
Loading…
Reference in a new issue