Added missing flags in video overlay intents
This commit is contained in:
parent
94444a01c5
commit
e2e7888292
2 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,8 @@ public class LinphoneGL2JNIViewOverlay extends org.linphone.mediastream.video.di
|
|||
public void onClick(View v) {
|
||||
Context context = LinphoneService.instance();
|
||||
Intent intent = new Intent(context, CallActivity.class);
|
||||
// This flag is required to start an Activity from a Service context
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -108,6 +108,8 @@ public class LinphoneTextureViewOverlay extends RelativeLayout implements Linpho
|
|||
public void onClick(View v) {
|
||||
Context context = LinphoneService.instance();
|
||||
Intent intent = new Intent(context, CallActivity.class);
|
||||
// This flag is required to start an Activity from a Service context
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue