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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user