Settings: Update DND access dialog to new user flow.

- Only list apps in the DND access list that have included
   the corresponding permission in their manifest.
 - Show a scary user warning before enabling access per app.
 - Update manifest to follow framework intent action rename.

Bug: 21621663
Change-Id: I76c6893928092bdbb58d62bc3aba31ec8a609fc6
This commit is contained in:
John Spurlock
2015-06-04 13:01:59 -04:00
parent 7b4d1e2cb8
commit a00194d998
3 changed files with 103 additions and 12 deletions

View File

@@ -6722,4 +6722,10 @@
<!-- Summary of data item when no data usage [CHAR LIMIT=40] -->
<string name="no_data_usage">No data used</string>
<!-- Zen mode access settings - title for warning dialog when enabling access [CHAR LIMIT=NONE] -->
<string name="zen_access_warning_dialog_title">Allow access to Do Not Disturb for <xliff:g id="app" example="Tasker">%1$s</xliff:g>?</string>
<!-- Zen mode access settings - summary for warning dialog when enabling access [CHAR LIMIT=NONE] -->
<string name="zen_access_warning_dialog_summary">The app will be able to turn on/off Do Not Disturb and make changes to related settings.</string>
</resources>