dont export PackageReplacedReceiver

This commit is contained in:
Kyle Spearrin 2017-11-09 20:33:01 -05:00
parent d4f6e9c587
commit d2d6bfc065

View file

@ -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>());