1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 15:53:44 +00:00

adjust toolbar after loading completes

This commit is contained in:
Kyle Spearrin
2019-06-05 17:25:12 -04:00
parent bc0bb7c7bb
commit c7938a8630
3 changed files with 114 additions and 85 deletions

View File

@@ -206,12 +206,13 @@ namespace Bit.App.Pages
}
}
public async Task<bool> LoadAsync()
public async Task<bool> LoadAsync(Action finishedLoadingAction = null)
{
CleanUp();
var cipher = await _cipherService.GetAsync(CipherId);
if(cipher == null)
{
finishedLoadingAction?.Invoke();
return false;
}
Cipher = await cipher.DecryptAsync();
@@ -235,6 +236,7 @@ namespace Bit.App.Pages
return true;
});
}
finishedLoadingAction?.Invoke();
return true;
}