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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user