Skip to content

Commit

Permalink
fix(android): Fix AnalyticsInfo.DeviceForm returning mobile instead o…
Browse files Browse the repository at this point in the history
…f tablet
  • Loading branch information
Youssef1313 committed Apr 24, 2023
1 parent bdd49d9 commit 2eecbb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Uno.UWP/System/Profile/AnalyticsInfo.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ private static UnoDeviceForm GetDeviceForm()
return UnoDeviceForm.Desktop;
}

if (SafeFormCheck(IsPhone))
if (SafeFormCheck(IsTablet))
{
return UnoDeviceForm.Mobile;
return UnoDeviceForm.Tablet;
}

if (SafeFormCheck(IsTablet))
if (SafeFormCheck(IsPhone))
{
return UnoDeviceForm.Tablet;
return UnoDeviceForm.Mobile;
}

// If nothing is returned, we cannot determine the family.
Expand Down

0 comments on commit 2eecbb7

Please sign in to comment.