mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-19 12:38:07 +00:00
Added missing flags in video overlay intents
This commit is contained in:
parent
69c795fc29
commit
20b84e55f1
2 changed files with 4 additions and 0 deletions
|
|
@ -100,6 +100,8 @@ public class LinphoneGL2JNIViewOverlay extends org.linphone.mediastream.video.di
|
|||
public void onClick(View v) {
|
||||
Context context = LinphoneService.instance();
|
||||
Intent intent = new Intent(context, LinphoneActivity.class);
|
||||
// This flag is required to start an Activity from a Service context
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ public class LinphoneTextureViewOverlay extends RelativeLayout implements Linpho
|
|||
public void onClick(View v) {
|
||||
Context context = LinphoneService.instance();
|
||||
Intent intent = new Intent(context, LinphoneActivity.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