mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
dont export PackageReplacedReceiver
This commit is contained in:
parent
d4f6e9c587
commit
d2d6bfc065
1 changed files with 4 additions and 4 deletions
|
@ -3,18 +3,18 @@ using Android.Content;
|
||||||
using Bit.App.Abstractions;
|
using Bit.App.Abstractions;
|
||||||
using Bit.App.Utilities;
|
using Bit.App.Utilities;
|
||||||
using Plugin.Settings.Abstractions;
|
using Plugin.Settings.Abstractions;
|
||||||
using System.Diagnostics;
|
using System;
|
||||||
using XLabs.Ioc;
|
using XLabs.Ioc;
|
||||||
|
|
||||||
namespace Bit.Android
|
namespace Bit.Android
|
||||||
{
|
{
|
||||||
[BroadcastReceiver(Name = "com.x8bit.bitwarden.PackageReplacedReceiver", Exported = true)]
|
[BroadcastReceiver(Name = "com.x8bit.bitwarden.PackageReplacedReceiver", Exported = false)]
|
||||||
[IntentFilter(new[] { Intent.ActionMyPackageReplaced })]
|
[IntentFilter(new[] { Intent.ActionMyPackageReplaced })]
|
||||||
public class PackageReplacedReceiver : BroadcastReceiver
|
public class PackageReplacedReceiver : BroadcastReceiver
|
||||||
{
|
{
|
||||||
public override void OnReceive(Context context, Intent intent)
|
public override void OnReceive(Context context, Intent intent)
|
||||||
{
|
{
|
||||||
Debug.WriteLine("App updated!");
|
Console.WriteLine("Bitwarden App Updated!");
|
||||||
Helpers.PerformUpdateTasks(Resolver.Resolve<ISettings>(),
|
Helpers.PerformUpdateTasks(Resolver.Resolve<ISettings>(),
|
||||||
Resolver.Resolve<IAppInfoService>(), Resolver.Resolve<IDatabaseService>(),
|
Resolver.Resolve<IAppInfoService>(), Resolver.Resolve<IDatabaseService>(),
|
||||||
Resolver.Resolve<ISyncService>());
|
Resolver.Resolve<ISyncService>());
|
||||||
|
|
Loading…
Reference in a new issue