Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Jul 29, 2024
1 parent 7c7489a commit b797130
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Yosu/Platforms/Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class MainActivity : MauiAppCompatActivity
private const int PostNotificationsRequestCode = 1006;
private const int TakeCardUriPermissionRequestCode = 1007;

protected override async void OnCreate(Bundle? savedInstanceState)
protected override void OnCreate(Bundle? savedInstanceState)
{
//AndroidX.Core.SplashScreen.SplashScreen.InstallSplashScreen(this);

Expand Down Expand Up @@ -127,7 +127,7 @@ protected override void OnActivityResult(int requestCode, Result resultCode, Int
PickDirectoryPermissionResult?.TrySetResult(new());
}
}
catch (System.Exception e)
catch
{
PickDirectoryPermissionResult?.TrySetResult(new());
}
Expand All @@ -138,7 +138,7 @@ protected override void OnActivityResult(int requestCode, Result resultCode, Int

public Task<PickDirectoryResult> PickDirectoryAsync()
{
PickDirectoryPermissionResult ??= new();
PickDirectoryPermissionResult = new();

try
{
Expand Down

0 comments on commit b797130

Please sign in to comment.