mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
show indicator when downloading attachment
This commit is contained in:
parent
0d672c4f99
commit
2f86b5c7b0
3 changed files with 15 additions and 0 deletions
|
@ -213,7 +213,9 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
private async Task SaveAttachmentAsync(VaultViewLoginPageModel.Attachment attachment)
|
private async Task SaveAttachmentAsync(VaultViewLoginPageModel.Attachment attachment)
|
||||||
{
|
{
|
||||||
|
_userDialogs.ShowLoading(AppResources.Downloading, MaskType.Black);
|
||||||
var data = await _loginService.DownloadAndDecryptAttachmentAsync(null, attachment.Url);
|
var data = await _loginService.DownloadAndDecryptAttachmentAsync(null, attachment.Url);
|
||||||
|
_userDialogs.HideLoading();
|
||||||
if(data == null)
|
if(data == null)
|
||||||
{
|
{
|
||||||
await _userDialogs.AlertAsync(AppResources.UnableToDownloadFile, null, AppResources.Ok);
|
await _userDialogs.AlertAsync(AppResources.UnableToDownloadFile, null, AppResources.Ok);
|
||||||
|
|
9
src/App/Resources/AppResources.Designer.cs
generated
9
src/App/Resources/AppResources.Designer.cs
generated
|
@ -628,6 +628,15 @@ namespace Bit.App.Resources {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Downloading....
|
||||||
|
/// </summary>
|
||||||
|
public static string Downloading {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Downloading", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Do you really want to delete? This cannot be undone..
|
/// Looks up a localized string similar to Do you really want to delete? This cannot be undone..
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -914,4 +914,8 @@
|
||||||
<data name="UnableToOpenFile" xml:space="preserve">
|
<data name="UnableToOpenFile" xml:space="preserve">
|
||||||
<value>Unable to open this type of file on your device.</value>
|
<value>Unable to open this type of file on your device.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Downloading" xml:space="preserve">
|
||||||
|
<value>Downloading...</value>
|
||||||
|
<comment>Message shown when downloading a file</comment>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
Loading…
Reference in a new issue