Revert notification toolbar setting

It isn't a setting.

Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Travis Ralston 2017-11-08 17:06:36 -07:00
parent 289b0c2b6a
commit c7d8f3931f
3 changed files with 4 additions and 13 deletions

View file

@ -236,8 +236,4 @@ export const SETTINGS = {
default: true,
controller: new AudioNotificationsEnabledController(),
},
"notificationToolbarHidden": {
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
default: false,
},
};

View file

@ -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();