Added Warning dialog when enabling usage access for app

The user is now thoroughly warned about enabling third party
app access to device history.

Change-Id: If8d49a47cae76e06f19cba117d3ec60075966541
This commit is contained in:
Adam Lesinski
2014-08-11 20:54:12 -07:00
parent 23c76e38ef
commit e01dfd1a82
4 changed files with 83 additions and 15 deletions

View File

@@ -117,7 +117,6 @@
<Preference android:key="usage_access"
android:title="@string/usage_access_title"
android:summary="@string/usage_access_summary"
android:fragment="com.android.settings.UsageAccessSettings"/>
</PreferenceCategory>

View File

@@ -16,4 +16,16 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="usage_access"
android:title="@string/usage_access_title" />
android:title="@string/usage_access_title">
<PreferenceCategory
android:key="apps"
android:title="@string/usage_access_app_list_header"
android:persistent="false" />
<Preference
android:summary="@string/usage_access_body"
android:persistent="false"
android:selectable="false" />
</PreferenceScreen>