From 8e9973a270fb026523c3a3a14ed32f4b247599aa Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Thu, 30 May 2019 15:37:04 -0700 Subject: [PATCH] Fixed #776 to handle VMs (#787) --- Xamarin.Essentials/DeviceInfo/DeviceInfo.uwp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Essentials/DeviceInfo/DeviceInfo.uwp.cs b/Xamarin.Essentials/DeviceInfo/DeviceInfo.uwp.cs index 2b027ad..389c45a 100644 --- a/Xamarin.Essentials/DeviceInfo/DeviceInfo.uwp.cs +++ b/Xamarin.Essentials/DeviceInfo/DeviceInfo.uwp.cs @@ -61,7 +61,7 @@ namespace Xamarin.Essentials static DeviceType GetDeviceType() { - var isVirtual = deviceInfo.SystemProductName == "Virtual"; + var isVirtual = deviceInfo.SystemProductName.Contains("Virtual") || deviceInfo.SystemProductName == "HMV domU"; if (isVirtual) return DeviceType.Virtual;