mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
api error detection updates
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Bit.App.Services
|
||||
|
||||
public Core.Enums.DeviceType GetDevice()
|
||||
{
|
||||
return Device.RuntimePlatform == Device.iOS ? Core.Enums.DeviceType.iOS : Core.Enums.DeviceType.Android;
|
||||
return _deviceActionService.DeviceType;
|
||||
}
|
||||
|
||||
public string GetDeviceString()
|
||||
@@ -91,7 +91,7 @@ namespace Bit.App.Services
|
||||
else
|
||||
{
|
||||
var launched = false;
|
||||
if(Device.RuntimePlatform == Device.Android && uri.StartsWith("androidapp://"))
|
||||
if(GetDevice() == Core.Enums.DeviceType.Android && uri.StartsWith("androidapp://"))
|
||||
{
|
||||
launched = _deviceActionService.LaunchApp(uri);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user