8000 Add missed method for issue #24 · linuxerwang/flutter-webrtc@4b30418 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b30418

Browse files
authored
Add missed method for issue flutter-webrtc#24
1 parent 87fdd0d commit 4b30418

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/utils/PermissionUtils.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,8 @@ private static void requestPermissions(
101101
try {
102102
transaction.commit();
103103
} catch (IllegalStateException ise) {
104-
// The Activity has likely already saved its state.
105-
maybeRequestPermissionsOnHostResume(
106-
plugin,
107-
permissions,
108-
grantResults,
109-
resultReceiver,
110-
requestCode);
104+
// Context is a Plugin, just send result back.
105+
send(resultReceiver, requestCode, permissions, grantResults);
111106
}
112107
}
113108

0 commit comments

Comments
 (0)
0