diff options
| author | 2020-11-24 18:30:38 -0500 | |
|---|---|---|
| committer | 2020-11-24 18:30:38 -0500 | |
| commit | bd7aba8cbf44be345d087db80f15f73ef894a0f4 (patch) | |
| tree | 4b1c445e723222c095de7c73ff97c9fb4135f560 | |
| parent | 54c839515bd84df43a3054462667c69a6b23b67c (diff) | |
docs: Remove error in requestPermissions doc
If an app has already been granted a permission and it requests that
permission again, the user shouldn't see a system dialog. Update the
documentation to reflect this intended behavior.
Test: m ds-docs-java
Bug: 157530031
Exempt-From-Owner-Approval: Docs-only change
Change-Id: I7096e17480831324dee72f4093cdaa064e3b9165
| -rw-r--r-- | core/java/android/app/Activity.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 3772755beca1..1265ce8650e1 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -5183,12 +5183,6 @@ public class Activity extends ContextThemeWrapper * #checkSelfPermission(String)}. * </p> * <p> - * Calling this API for permissions already granted to your app would show UI - * to the user to decide whether the app can still hold these permissions. This - * can be useful if the way your app uses data guarded by the permissions - * changes significantly. - * </p> - * <p> * You cannot request a permission if your activity sets {@link * android.R.styleable#AndroidManifestActivity_noHistory noHistory} to * <code>true</code> because in this case the activity would not receive |