Skip to content

Commit

Permalink
fix: ActionAppNotificationSettings Launcher missing package reference
Browse files Browse the repository at this point in the history
  • Loading branch information
morning4coffe-dev committed Sep 2, 2024
1 parent 0a56fe8 commit 7b7cb35
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Uno.UWP/System/Launcher.Android.SpecialUris.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#if __ANDROID__
using System.Linq;
using System.Threading.Tasks;
using Android.Content;
using System;
using Android.Provider;
using System.Collections.Generic;
using System.Linq;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Provider;

namespace Windows.System
{
Expand Down Expand Up @@ -96,6 +96,11 @@ private static bool HandleSettingsUri(Uri uri)
}

var intent = new Intent(launchAction ?? Settings.ActionSettings);
if (launchAction == Settings.ActionAppNotificationSettings)
{
intent.PutExtra(Settings.ExtraAppPackage, Application.Context.PackageName);
}

StartActivity(intent);
return true;
}
Expand Down

0 comments on commit 7b7cb35

Please sign in to comment.