Add condition provider access to settings.
Pull NotificationAccessSettings out into a reusable base class and reuse all of it for a new condition providers settings page. As with notification listeners, the entire section is hidden if no apps provide conditions. Change-Id: Ib5273f3362e392d99647347c23a514e4590f7ac9
This commit is contained in:
@@ -42,9 +42,21 @@
|
||||
android:switchTextOn=""
|
||||
android:title="@string/zen_mode_messages" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="automatic"
|
||||
android:layout="@layout/zen_mode_section"
|
||||
android:title="@string/zen_mode_automatic_category" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="security"
|
||||
android:layout="@layout/zen_mode_section"
|
||||
android:title="@string/zen_mode_security_category" >
|
||||
<Preference
|
||||
android:key="manage_condition_providers"
|
||||
android:title="@string/manage_condition_providers"
|
||||
android:persistent="false"
|
||||
android:fragment="com.android.settings.notification.ConditionProviderSettings" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user