This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 0418b4d  [Android] fix wording (#752)
0418b4d is described below

commit 0418b4d6c86907d9ce97686ef9f77c56ecd99da0
Author: Adam Schachne <adamschac...@live.com>
AuthorDate: Fri Feb 23 09:10:23 2018 -0800

    [Android] fix wording (#752)
---
 www/docs/en/dev/guide/platforms/android/plugin.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/docs/en/dev/guide/platforms/android/plugin.md 
b/www/docs/en/dev/guide/platforms/android/plugin.md
index a2ce45a..a6fd71c 100644
--- a/www/docs/en/dev/guide/platforms/android/plugin.md
+++ b/www/docs/en/dev/guide/platforms/android/plugin.md
@@ -301,7 +301,7 @@ was the focus of the Cordova-Android 5.0.0 release.
 The permissions that need to be handled at runtime can be found in the Android 
Developer
 documentation [here][permissions-guide].
 
-As far as a plugin is concerned, the permission can be requested by calling 
the permission method, which signature is as follows:
+As far as a plugin is concerned, the permission can be requested by calling 
the permission method; the signature of which is as follows:
 
 ```java
 cordova.requestPermission(CordovaPlugin plugin, int requestCode, String 
permission);
@@ -341,7 +341,7 @@ protected void getReadPermission(int requestCode)
 }
 ```
 
-This will call the activity and cause a prompt to appear asking for the 
permission.  Once the user has the permission, the result must be handled with 
the `onRequestPermissionResult` method, which
+This will call the activity and cause a prompt to appear, asking for the 
permission.  Once the user has the permission, the result must be handled with 
the `onRequestPermissionResult` method, which
 every plugin should override.  An example of this can be found below:
 
 ```java
@@ -371,7 +371,7 @@ public void onRequestPermissionResult(int requestCode, 
String[] permissions,
 }
 ```
 
-The switch statement above would return from the prompt and depending on the 
requestCode that was passed in, it would call the method.  It should be noted 
that permission prompts may stack if the execution is not handled correctly, 
and that this should be avoided.
+The switch statement above would return from the prompt and, depending on the 
requestCode that was passed in, would call the respective method.  It should be 
noted that permission prompts may stack if the execution is not handled 
correctly, and that this should be avoided.
 
 In addition to asking for permission for a single permission, it is also 
possible to request permissions for an entire group by defining the permissions 
array, as what is done with the Geolocation plugin:
 

-- 
To stop receiving notification emails like this one, please contact
jan...@apache.org.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to