mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-30 00:00:04 +08:00
Call new method CordovaPlugin.onRequestPermissionsResult (#1855)
- Fixes https://github.com/apache/cordova-android/issues/1388 - `CordovaInterfaceImpl` called the deprecated method `CordovaPlugin.onRequestPermissionResult` but not the new one. Now the one will also be called. - Renamed `CordovaInterfaceImpl.onRequestPermissionResult` to `CordovaInterfaceImpl.onRequestPermissionsResult` to reflect the new method name
This commit is contained in:
+2
-2
@@ -87,7 +87,7 @@ public class EmbeddedWebViewActivity extends AppCompatActivity {
|
||||
* Called by the system when the user grants permissions!
|
||||
*
|
||||
* Note: The fragment gets priority over the activity, since the activity doesn't call
|
||||
* into the parent onRequestPermissionResult, which is why there's no override.
|
||||
* into the parent onRequestPermissionsResult, which is why there's no override.
|
||||
*
|
||||
* @param requestCode
|
||||
* @param permissions
|
||||
@@ -98,7 +98,7 @@ public class EmbeddedWebViewActivity extends AppCompatActivity {
|
||||
int[] grantResults) {
|
||||
try
|
||||
{
|
||||
cordovaInterface.onRequestPermissionResult(requestCode, permissions, grantResults);
|
||||
cordovaInterface.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||
}
|
||||
catch (JSONException e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user