Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linphone-windows10
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
linphone-windows10
Commits
404aa0f9
Commit
404aa0f9
authored
Nov 14, 2017
by
Mickaël Turnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a lock to prevent multiple video acceptation's windows to show at the same time
parent
57d903ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
InCall.xaml.cs
Linphone/Views/InCall.xaml.cs
+13
-3
No files found.
Linphone/Views/InCall.xaml.cs
View file @
404aa0f9
...
...
@@ -49,6 +49,8 @@ namespace Linphone.Views {
private
SimpleOrientationSensor
orientationSensor
;
private
SimpleOrientation
deviceOrientation
;
private
readonly
object
popupLock
=
new
Object
();
public
InCall
()
{
this
.
InitializeComponent
();
this
.
DataContext
=
new
InCallModel
();
...
...
@@ -279,8 +281,12 @@ namespace Linphone.Views {
}
public
async
void
AskVideoPopup
(
Call
call
)
{
if
(
askingVideo
)
return
;
askingVideo
=
true
;
lock
(
popupLock
)
{
if
(
askingVideo
)
return
;
askingVideo
=
true
;
}
MessageDialog
dialog
=
new
MessageDialog
(
ResourceLoader
.
GetForCurrentView
().
GetString
(
"VideoActivationPopupContent"
),
ResourceLoader
.
GetForCurrentView
().
GetString
(
"VideoActivationPopupCaption"
));
dialog
.
Commands
.
Clear
();
dialog
.
Commands
.
Add
(
new
UICommand
{
Label
=
ResourceLoader
.
GetForCurrentView
().
GetString
(
"Accept"
),
Id
=
0
});
...
...
@@ -291,10 +297,14 @@ namespace Linphone.Views {
if
((
int
)
res
.
Id
==
0
)
{
// Workaround to pop the camera permission window
await
openCameraPopup
();
parameters
.
VideoEnabled
=
true
;
}
LinphoneManager
.
Instance
.
Core
.
AcceptCallUpdate
(
call
,
parameters
);
askingVideo
=
false
;
lock
(
popupLock
)
{
askingVideo
=
false
;
}
}
#
region
Video
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment