Pavel Grafov 0844fb92d8 Use primary user's LOCK_SCREEN_SHOW_NOTIFICATIONS.
Only primary user can set LOCK_SCREEN_SHOW_NOTIFICATIONS,
profile can only set notifications to be redacted. When the
user changes notification settings for a work app, this class
is invoked from the profile, meaning it attempts to read
LOCK_SCREEN_SHOW_NOTIFICATIONS for the profile, which is not
there. As a result the function always returs 0 for work apps.

Bug: 111112011
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/notification/VisibilityPreferenceControllerTest.java
Change-Id: Ifb50209ea8ea8fb6639f00ca8b7cf8a4295890ad
(cherry picked from commit f14de789f4)
2018-07-17 23:28:34 +00:00
2018-06-08 15:17:09 +00:00
2018-04-04 16:08:17 -04:00
2015-04-13 09:21:39 -07:00
2017-10-13 15:59:03 -07:00
2018-04-04 16:08:17 -04:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%