Commit 6f692a22 authored by Margaux Clerc's avatar Margaux Clerc

Detect windows mobile properly

parent ee286147
......@@ -30,6 +30,7 @@ using Windows.ApplicationModel.Calls;
using LinphoneTasks;
using Windows.Networking.Connectivity;
using System.Text;
using Windows.Foundation.Metadata;
namespace Linphone.Model
{
......@@ -128,8 +129,7 @@ namespace Linphone.Model
LinphoneManager.Instance.Core.ChatDatabasePath = GetChatDatabasePath();
LinphoneManager.Instance.Core.RootCa = GetRootCaPath();
if(AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Mobile")
{
if (ApiInformation.IsApiContractPresent("Windows.Phone.PhoneContract", 1)) {
AudioRoutingManager.GetDefault().AudioEndpointChanged += AudioEndpointChanged;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment