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:
John Spurlock
2014-04-29 18:07:23 -04:00
parent a0ceb908bf
commit c9afadb04b
12 changed files with 518 additions and 303 deletions

View File

@@ -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>