mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-21 05:28:08 +00:00
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…
Add table
Reference in a new issue