Skip to content

Commit

Permalink
xamarinGH-668 Calculate Phone v Tablet on Android correctly (xamarin#670
Browse files Browse the repository at this point in the history
)

Need to return known and calculate tablet vs phone as "Normal" is returned by all standard devices.
  • Loading branch information
jamesmontemagno authored Jan 2, 2019
1 parent 6a76d4d commit 2c2e6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Essentials/DeviceInfo/DeviceInfo.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static DeviceIdiom GetIdiom()
static DeviceIdiom DetectIdiom(UiMode uiMode)
{
if (uiMode.HasFlag(UiMode.TypeNormal))
return DeviceIdiom.Phone;
return DeviceIdiom.Unknown;
else if (uiMode.HasFlag(UiMode.TypeTelevision))
return DeviceIdiom.TV;
else if (uiMode.HasFlag(UiMode.TypeDesk))
Expand Down

0 comments on commit 2c2e6d6

Please sign in to comment.