android: handle onActivityResult Activity lifecycle method
It may be called in the Activity instead of in the Fragment. Handle both.
This commit is contained in:
parent
db862b5b3b
commit
4591b36c3e
|
@ -107,7 +107,7 @@ public class MainActivity extends JitsiMeetActivity {
|
||||||
//
|
//
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
if (requestCode == OVERLAY_PERMISSION_REQUEST_CODE
|
if (requestCode == OVERLAY_PERMISSION_REQUEST_CODE
|
||||||
&& canRequestOverlayPermission()) {
|
&& canRequestOverlayPermission()) {
|
||||||
if (Settings.canDrawOverlays(this)) {
|
if (Settings.canDrawOverlays(this)) {
|
||||||
|
|
|
@ -143,6 +143,11 @@ public class JitsiMeetActivity extends FragmentActivity
|
||||||
// Activity lifecycle methods
|
// Activity lifecycle methods
|
||||||
//
|
//
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
|
JitsiMeetActivityDelegate.onActivityResult(this, requestCode, resultCode, data);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
JitsiMeetActivityDelegate.onBackPressed();
|
JitsiMeetActivityDelegate.onBackPressed();
|
||||||
|
|
|
@ -26,8 +26,6 @@ import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
|
||||||
import java.net.URL;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base {@link Fragment} for applications integrating Jitsi Meet at a higher level. It
|
* Base {@link Fragment} for applications integrating Jitsi Meet at a higher level. It
|
||||||
* contains all the required wiring between the {@code JitsiMeetView} and
|
* contains all the required wiring between the {@code JitsiMeetView} and
|
||||||
|
|
Loading…
Reference in New Issue