diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java index 0a9578561..84c34957d 100644 --- a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java +++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java @@ -32,6 +32,7 @@ import com.facebook.react.modules.core.PermissionListener; import org.jitsi.meet.sdk.log.JitsiMeetLogger; import java.util.HashMap; +import android.app.Activity; /** * A base activity for SDK users to embed. It uses {@link JitsiMeetFragment} to do the heavy @@ -58,6 +59,9 @@ public class JitsiMeetActivity extends FragmentActivity Intent intent = new Intent(context, JitsiMeetActivity.class); intent.setAction(ACTION_JITSI_MEET_CONFERENCE); intent.putExtra(JITSI_MEET_CONFERENCE_OPTIONS, options); + if (!(context instanceof Activity)) { + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + } context.startActivity(intent); }