mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
16 lines
514 B
C#
16 lines
514 B
C#
using Android.Content;
|
|
using Bit.Core.Abstractions;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Droid.Receivers
|
|
{
|
|
[BroadcastReceiver(Name = "com.x8bit.bitwarden.EventUploadReceiver", Exported = false)]
|
|
public class EventUploadReceiver : BroadcastReceiver
|
|
{
|
|
public async override void OnReceive(Context context, Intent intent)
|
|
{
|
|
var eventService = ServiceContainer.Resolve<IEventService>("eventService");
|
|
await eventService.UploadEventsAsync();
|
|
}
|
|
}
|
|
}
|