Skip to content

Commit

Permalink
Fixed Uri open crash
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielTavernini committed Nov 3, 2020
1 parent 8770909 commit 9531f13
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Droid/Properties/AndroidManifest.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.gabriel.Registro" android:versionCode="900045" android:versionName="4.5">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.gabriel.Registro" android:versionCode="900046" android:versionName="4.6">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="30" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
3 changes: 1 addition & 2 deletions Registro/Pages/LoginPages/SchoolUrlPage.xaml.cs
Expand Up @@ -3,7 +3,6 @@
using System.Threading.Tasks;
using Registro.Classes.HttpRequests;
using Registro.Controls;
using Xamarin.Essentials;
using Xamarin.Forms;
using static Registro.Controls.AndroidThemes;
using static Registro.Controls.Mails;
Expand Down Expand Up @@ -96,7 +95,7 @@ async void AuthButtonClicked(object sender, EventArgs e)
"Ok", "Istruzioni");

if (wiki)
Launcher.OpenAsync(new Uri("https://github.com/GabrielTavernini/XFRegistro/wiki/Accesso-tramite-link"));
Device.OpenUri(new Uri("https://github.com/GabrielTavernini/XFRegistro/wiki/Accesso-tramite-link"));

return;
}
Expand Down
4 changes: 2 additions & 2 deletions Registro/Pages/MarksPages/SettingsPage.xaml.cs
Expand Up @@ -431,12 +431,12 @@ public void creditsSetup()

Info.Tapped += (sender, e) =>
{
Launcher.OpenAsync(new Uri("https://github.com/GabrielTavernini/XFRegistro/wiki"));
Device.OpenUri(new Uri("https://github.com/GabrielTavernini/XFRegistro/wiki"));
};

Me.Tapped += (sender, e) =>
{
Launcher.OpenAsync(new Uri("http://gabrieltavernini.github.io/"));
Device.OpenUri(new Uri("http://gabrieltavernini.github.io/"));
};
}

Expand Down
2 changes: 1 addition & 1 deletion Registro/Pages/Menu/HomePage.xaml.cs
Expand Up @@ -148,7 +148,7 @@ protected async override void OnAppearing()

if (result)
{
Launcher.OpenAsync(new Uri("https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=com.gabriel.Registro"));
Device.OpenUri(new Uri("https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=com.gabriel.Registro"));
}
}
} else
Expand Down

0 comments on commit 9531f13

Please sign in to comment.