Export Option
Added export function
This commit is contained in:
@@ -51,6 +51,8 @@ public sealed class CfsNotificationReceiver : BroadcastReceiver
|
||||
private void HandleSaveStatus(Context context, Intent intent)
|
||||
{
|
||||
var pendingResult = GoAsync();
|
||||
if (pendingResult is null)
|
||||
return;
|
||||
|
||||
_ = Task.Run(async () =>
|
||||
{
|
||||
@@ -76,7 +78,8 @@ public sealed class CfsNotificationReceiver : BroadcastReceiver
|
||||
timestamp: DateTime.Now,
|
||||
source: EntrySource.App);
|
||||
|
||||
NotificationManagerCompat.From(context).Cancel(notificationId);
|
||||
var notificationManager = NotificationManagerCompat.From(context);
|
||||
notificationManager?.Cancel(notificationId);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -117,4 +120,4 @@ public sealed class CfsNotificationReceiver : BroadcastReceiver
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user