remove unsubs

This commit is contained in:
Kyle Spearrin 2017-11-21 14:31:46 -05:00
parent 1a9d0576c8
commit 1fafc29ec3

View file

@ -121,8 +121,6 @@ namespace Bit.Android
{ {
if(Intent.GetBooleanExtra("autofillFramework", false)) if(Intent.GetBooleanExtra("autofillFramework", false))
{ {
MessagingCenter.Unsubscribe<Xamarin.Forms.Application>(Xamarin.Forms.Application.Current,
"BackgroundApp");
SetResult(Result.Canceled); SetResult(Result.Canceled);
Finish(); Finish();
} }
@ -135,14 +133,6 @@ namespace Bit.Android
private void ReturnCredentials(VaultListPageModel.Cipher cipher) private void ReturnCredentials(VaultListPageModel.Cipher cipher)
{ {
if(_appOptions?.Uri != null)
{
MessagingCenter.Unsubscribe<Xamarin.Forms.Application, VaultListPageModel.Cipher>(
Xamarin.Forms.Application.Current, "Autofill");
MessagingCenter.Unsubscribe<Xamarin.Forms.Application>(Xamarin.Forms.Application.Current,
"BackgroundApp");
}
if(Intent.GetBooleanExtra("autofillFramework", false)) if(Intent.GetBooleanExtra("autofillFramework", false))
{ {
if(cipher == null) if(cipher == null)