missing dep. Revert "Implement per-app sensitivity settings toggle."
This reverts commit 56131de741
.
Change-Id: I409dbf4495f95ff37d2a47168cdbc4131a80d42e
This commit is contained in:
@@ -137,9 +137,7 @@ public class AppNotificationSettings extends SettingsPreferenceFragment {
|
||||
mSensitive = (SwitchPreference) findPreference(KEY_SENSITIVE);
|
||||
|
||||
final boolean secure = new LockPatternUtils(getActivity()).isSecure();
|
||||
final boolean enabled = getLockscreenNotificationsEnabled();
|
||||
final boolean allowPrivate = getLockscreenAllowPrivateNotifications();
|
||||
if (!secure || !enabled || !allowPrivate) {
|
||||
if (!secure) {
|
||||
getPreferenceScreen().removePreference(mSensitive);
|
||||
}
|
||||
|
||||
@@ -195,16 +193,6 @@ public class AppNotificationSettings extends SettingsPreferenceFragment {
|
||||
}
|
||||
}
|
||||
|
||||
private boolean getLockscreenNotificationsEnabled() {
|
||||
return Settings.Secure.getInt(getContentResolver(),
|
||||
Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0) != 0;
|
||||
}
|
||||
|
||||
private boolean getLockscreenAllowPrivateNotifications() {
|
||||
return Settings.Secure.getInt(getContentResolver(),
|
||||
Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0) != 0;
|
||||
}
|
||||
|
||||
private void toastAndFinish() {
|
||||
Toast.makeText(mContext, R.string.app_not_found_dlg_text, Toast.LENGTH_SHORT).show();
|
||||
getActivity().finish();
|
||||
|
Reference in New Issue
Block a user