Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4276a8fb authored by Andrew Solovay's avatar Andrew Solovay
Browse files

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
parent e3de6c5d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -916,8 +916,11 @@ $ adb pm revoke <package_name> <permission_name>
  </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>