mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 07:13:33 +00:00
fix for disappearing share sheet (#1386)
This commit is contained in:
@@ -391,16 +391,7 @@ namespace Bit.App.Pages
|
|||||||
_messagingService.Send("sendUpdated");
|
_messagingService.Send("sendUpdated");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ShareOnSave)
|
if (!ShareOnSave)
|
||||||
{
|
|
||||||
var savedSend = await _sendService.GetAsync(sendId);
|
|
||||||
if (savedSend != null)
|
|
||||||
{
|
|
||||||
var savedSendView = await savedSend.DecryptAsync();
|
|
||||||
await AppHelpers.ShareSendUrlAsync(savedSendView);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
_platformUtilsService.ShowToast("success", null,
|
_platformUtilsService.ShowToast("success", null,
|
||||||
EditMode ? AppResources.SendUpdated : AppResources.NewSendCreated);
|
EditMode ? AppResources.SendUpdated : AppResources.NewSendCreated);
|
||||||
@@ -415,6 +406,16 @@ namespace Bit.App.Pages
|
|||||||
await Page.Navigation.PopModalAsync();
|
await Page.Navigation.PopModalAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ShareOnSave)
|
||||||
|
{
|
||||||
|
var savedSend = await _sendService.GetAsync(sendId);
|
||||||
|
if (savedSend != null)
|
||||||
|
{
|
||||||
|
var savedSendView = await savedSend.DecryptAsync();
|
||||||
|
await AppHelpers.ShareSendUrlAsync(savedSendView);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
|
|||||||
Reference in New Issue
Block a user