Let SysUI call Settings.Secure#getInt

This call is cached locally by Settings

Fixes: 140058091
Test: make
Change-Id: Ia5eb335e2de69b39095b7d151d4d1e128c9abbd8
This commit is contained in:
Lucas Dupin
2019-11-19 15:05:34 -08:00
parent a2186c9f79
commit fe590e4c8c

View File

@@ -333,7 +333,6 @@ public class NotificationLockscreenUserManagerImpl implements
}
private boolean hideSilentNotificationsOnLockscreen() {
// TODO(b/140058091)
return whitelistIpcs(() -> Settings.Secure.getInt(mContext.getContentResolver(),
Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS, 1) == 0);
}