Commit 2ecb42f0 authored by Sylvain Berfini's avatar Sylvain Berfini

Added blank screen to prevent visible flicker between wizard and dialer sometimes

parent 9c50bca0
......@@ -18,10 +18,14 @@ namespace Linphone.Agents
public const string UserAgent = "LinphoneWP8";
public const bool EnableG729 = false;
public const bool EnableVideo = false;
// Do not enable these for releases !!!
#if DEBUG
public const bool AllowTCPRemote = true; // Do not enable this for releases !!!
public const bool AllowTCPRemote = true;
public const bool ShowWizardUntilAccountConfigured = true;
#else
public const bool AllowTCPRemote = false; // Do not enable this for releases !!!
public const bool AllowTCPRemote = false;
public const bool ShowWizardUntilAccountConfigured = false;
#endif
internal const bool DeclineCallWithBusyReason = false;
......
......@@ -186,6 +186,9 @@
<Compile Include="Views\IncomingCall.xaml.cs">
<DependentUpon>IncomingCall.xaml</DependentUpon>
</Compile>
<Compile Include="Views\Launcher.xaml.cs">
<DependentUpon>Launcher.xaml</DependentUpon>
</Compile>
<Compile Include="Views\Settings.xaml.cs">
<DependentUpon>Settings.xaml</DependentUpon>
</Compile>
......@@ -382,6 +385,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\Launcher.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\Settings.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
......
......@@ -17,7 +17,7 @@
<Capability Name="ID_CAP_MEDIALIB_PHOTO" />
</Capabilities>
<Tasks>
<DefaultTask Name="_default" NavigationPage="Views/Dialer.xaml" />
<DefaultTask Name="_default" NavigationPage="Views/Launcher.xaml" />
<ExtendedTask Name="BackgroundTask">
<BackgroundServiceAgent Specifier="ScheduledTaskAgent" Name="IncomingAndKeepAliveAgent" Source="Linphone.Agents" Type="Linphone.Agents.LinphoneScheduledAgent" />
<BackgroundServiceAgent Specifier="VoIPCallInProgressAgent" Name="CallInProgressAgent" Source="Linphone.Agents" Type="Linphone.Agents.LinphoneCallInProgressAgent" />
......
<phone:PhoneApplicationPage
x:Class="Linphone.Views.Launcher"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d"
shell:SystemTray.IsVisible="True">
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid x:Name="ContentPanel" Grid.Row="0" Margin="12,0,12,0">
</Grid>
</Grid>
</phone:PhoneApplicationPage>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Linphone.Agents;
namespace Linphone.Views
{
public partial class Launcher : PhoneApplicationPage
{
public Launcher()
{
InitializeComponent();
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
if (Customs.ShowWizardUntilAccountConfigured)
{
NavigationService.Navigate(new Uri("/Views/FirstLogin.xaml", UriKind.RelativeOrAbsolute));
}
else
{
NavigationService.Navigate(new Uri("/Views/Dialer.xaml", UriKind.RelativeOrAbsolute));
}
NavigationService.RemoveBackEntry(); // Prevent a back to this screen
} }
}
\ No newline at end of file
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