Add policy transparency to app notification settings on lockscreen.

Bug: 28390118
Change-Id: I395440b0f7e93da90f9f346574afa5501761d473
This commit is contained in:
Sudheer Shanka
2016-04-27 13:11:24 -07:00
parent 8fa3d44596
commit 2ad6adbd58
6 changed files with 350 additions and 11 deletions

View File

@@ -26,7 +26,6 @@ import android.content.pm.UserInfo;
import android.os.Bundle;
import android.os.UserHandle;
import android.service.notification.NotificationListenerService.Ranking;
import android.support.v7.preference.DropDownPreference;
import android.util.ArrayMap;
import android.util.Log;
@@ -76,7 +75,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
mPriority =
(RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_BYPASS_DND);
mVisibilityOverride =
(DropDownPreference) getPreferenceScreen().findPreference(
(RestrictedDropDownPreference) getPreferenceScreen().findPreference(
KEY_VISIBILITY_OVERRIDE);
mBlock = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_BLOCK);
mSilent = (RestrictedSwitchPreference) getPreferenceScreen().findPreference(KEY_SILENT);