Skip to content

Commit

Permalink
Fix iOS filtering login for display info
Browse files Browse the repository at this point in the history
  • Loading branch information
JunielKatarn committed May 2, 2021
1 parent 3e67466 commit a3be55a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Forms/Views/MenuPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,23 @@ private async void OpenButton_Clicked(object sender, EventArgs e)

private async void AboutButton_Clicked(object sender, EventArgs e)
{
string mdi = "Unknown";
string version = "Unknown";
string mdi;
string version;
if (Device.GTK != Device.RuntimePlatform)
{
//TODO: Log bug against Xamarin.Essentials (iOS 9.3.x)
if (Device.RuntimePlatform == Device.iOS && DeviceInfo.Version.Major > 9)
if (Device.RuntimePlatform == Device.iOS && DeviceInfo.Version.Major < 10)
mdi = "Unknown";
else
mdi = DeviceDisplay.MainDisplayInfo.ToString();

version = VersionTracking.CurrentVersion;
}
else
{
mdi = "Unknown";
version = "Unknown";
}

await DisplayAlert("Info", $"Unjammit! Version [{version}]\nDisplayInfo: [{mdi}]", "OK");
}
Expand Down

0 comments on commit a3be55a

Please sign in to comment.