1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 02:23:57 +00:00

add type to deviceinfo to avoid using XF

This commit is contained in:
Kyle Spearrin
2017-12-21 13:10:55 -05:00
parent 379a82972a
commit 2b4ffaa357
6 changed files with 14 additions and 5 deletions

View File

@@ -23,9 +23,14 @@ namespace Bit.App.Utilities
}
public static T OnPlatform<T>(T iOS = default(T), T Android = default(T),
T WinPhone = default(T), T Windows = default(T))
T WinPhone = default(T), T Windows = default(T), string platform = null)
{
switch(Device.RuntimePlatform)
if(platform == null)
{
platform = Device.RuntimePlatform;
}
switch(platform)
{
case Device.iOS:
return iOS;