1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-04 17:43:17 +00:00

Update to Forms 2.4

This commit is contained in:
Kyle Spearrin
2017-12-13 21:04:51 -05:00
parent c06df3889b
commit 09ef1b66cc
14 changed files with 15 additions and 15 deletions

View File

@@ -55,7 +55,7 @@ namespace Bit.App
public static async Task PushForDeviceAsync(this INavigation navigation, Page page)
{
if (Device.RuntimePlatform != Device.Windows)
if (Device.RuntimePlatform != Device.UWP)
{
await navigation.PushModalAsync(new ExtendedNavigationPage(page), true);
}
@@ -69,7 +69,7 @@ namespace Bit.App
{
if(navigation.ModalStack.Count < 1)
{
if (navigation.NavigationStack.Count > 0 && Device.RuntimePlatform == Device.Windows)
if (navigation.NavigationStack.Count > 0 && Device.RuntimePlatform == Device.UWP)
{
await navigation.PopAsync();
}

View File

@@ -33,7 +33,7 @@ namespace Bit.App.Utilities
return Android;
case Device.WinPhone:
return WinPhone;
case Device.Windows:
case Device.UWP:
return Windows;
default:
throw new Exception("Unsupported platform.");