From c2a8cb9b97b79b21efcfcb264f5224982887e9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Krafft?= Date: Sun, 10 Feb 2019 15:29:39 +0100 Subject: [PATCH] Implements JitsiMeetActivityInterface --- .../JitsiMeetNavigatorActivity.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/reactnativejitsimeet/JitsiMeetNavigatorActivity.java b/android/src/main/java/com/reactnativejitsimeet/JitsiMeetNavigatorActivity.java index e5b01206..83c9a71f 100644 --- a/android/src/main/java/com/reactnativejitsimeet/JitsiMeetNavigatorActivity.java +++ b/android/src/main/java/com/reactnativejitsimeet/JitsiMeetNavigatorActivity.java @@ -20,8 +20,9 @@ import org.jitsi.meet.sdk.JitsiMeetView; import org.jitsi.meet.sdk.JitsiMeetViewListener; import org.jitsi.meet.sdk.ReactActivityLifecycleCallbacks; +import org.jitsi.meet.sdk.JitsiMeetActivityInterface; -public class JitsiMeetNavigatorActivity extends AppCompatActivity implements JitsiMeetViewListener{ +public class JitsiMeetNavigatorActivity extends AppCompatActivity implements JitsiMeetViewListener, JitsiMeetActivityInterface { /** * Instance of the {@link JitsiMeetView} which this activity will display. @@ -81,6 +82,14 @@ public void onRequestPermissionsResult( ReactActivityLifecycleCallbacks.onRequestPermissionsResult(requestCode, permissions, grantResults); } + /** + * Implementation of the {@code PermissionAwareActivity} interface. + */ + @Override + public void requestPermissions(String[] permissions, int requestCode, PermissionListener listener) { + ReactActivityLifecycleCallbacks.requestPermissions(this, permissions, requestCode, listener); + } + @Override protected void onResume() { super.onResume();