summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndrew Solovay <asolovay@google.com>2015-08-19 13:44:56 -0700
committerAndrew Solovay <asolovay@google.com>2015-08-19 13:44:56 -0700
commit4276a8fb25071aa0e471a5afc0764987db79cc49 (patch)
treea669695d6bdf8777ef966cfec01de7ac39570b6a /docs
parente3de6c5df5a94e627c5ee0f188cbb066233a3dd0 (diff)
downloadframeworks_base-4276a8fb25071aa0e471a5afc0764987db79cc49.zip
frameworks_base-4276a8fb25071aa0e471a5afc0764987db79cc49.tar.gz
frameworks_base-4276a8fb25071aa0e471a5afc0764987db79cc49.tar.bz2
docs: Fix return info for support lib checkSelfPermission()
Docs incorrectly said the method returns a boolean. In fact, it (like the framework version) returns an int constant. See first comment for doc stage location. bug: 23331110 Change-Id: I2b4ccdc56dc0cff414c4d21e3916e8e7a0b0e909
Diffstat (limited to 'docs')
-rw-r--r--docs/html/preview/features/runtime-permissions.jd7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/html/preview/features/runtime-permissions.jd b/docs/html/preview/features/runtime-permissions.jd
index 8ab7619..62e49b9 100644
--- a/docs/html/preview/features/runtime-permissions.jd
+++ b/docs/html/preview/features/runtime-permissions.jd
@@ -916,8 +916,11 @@ $ adb pm revoke &lt;package_name&gt; &lt;permission_name&gt;
</dt>
<dd>
- Returns <code>true</code> if the app has the specified permission, whether
- or not the device is using the M Preview.
+ Returns {@link android.content.pm.PackageManager#PERMISSION_GRANTED
+ PERMISSION_GRANTED} if the app has the specified permission, whether
+ or not the device is using the M Preview. If the app does not have the
+ specified permission, returns {@link
+ android.content.pm.PackageManager#PERMISSION_DENIED PERMISSION_DENIED}.
</dd>
<dt>