summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/notification/NotificationSettings.java
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2014-07-22 23:15:17 -0400
committerDan Sandler <dsandler@android.com>2014-08-06 13:53:25 -0400
commit3e2afb6ef788dd80a619e467773490a1886d74cf (patch)
treec236c61e851b39adb14cd6b1ad5dc0a4b8dc9778 /src/com/android/settings/notification/NotificationSettings.java
parenta15e76d113d910bc530a783c627be610d4148e16 (diff)
downloadpackages_apps_Settings-3e2afb6ef788dd80a619e467773490a1886d74cf.zip
packages_apps_Settings-3e2afb6ef788dd80a619e467773490a1886d74cf.tar.gz
packages_apps_Settings-3e2afb6ef788dd80a619e467773490a1886d74cf.tar.bz2
Track moved Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS.
Bug: 15331132 Change-Id: Ia80ccb2cfdf60116bd50601e60ff131619eafcc5
Diffstat (limited to 'src/com/android/settings/notification/NotificationSettings.java')
-rw-r--r--src/com/android/settings/notification/NotificationSettings.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/settings/notification/NotificationSettings.java b/src/com/android/settings/notification/NotificationSettings.java
index 4b5718b..2b0fd5c 100644
--- a/src/com/android/settings/notification/NotificationSettings.java
+++ b/src/com/android/settings/notification/NotificationSettings.java
@@ -318,8 +318,8 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
final boolean show = val == R.string.lock_screen_notifications_summary_show;
Settings.Secure.putInt(getContentResolver(),
Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, show ? 1 : 0);
- Settings.Global.putInt(getContentResolver(),
- Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0);
+ Settings.Secure.putInt(getContentResolver(),
+ Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0);
return true;
}
});
@@ -338,8 +338,8 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
}
private boolean getLockscreenNotificationsEnabled() {
- return Settings.Global.getInt(getContentResolver(),
- Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0) != 0;
+ return Settings.Secure.getInt(getContentResolver(),
+ Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0) != 0;
}
private boolean getLockscreenAllowPrivateNotifications() {
@@ -378,7 +378,7 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
private final Uri LOCK_SCREEN_PRIVATE_URI =
Settings.Secure.getUriFor(Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS);
private final Uri LOCK_SCREEN_SHOW_URI =
- Settings.Global.getUriFor(Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS);
+ Settings.Secure.getUriFor(Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS);
public SettingsObserver() {
super(mHandler);