mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
Avoid Task.Result usage (#930)
This commit is contained in:
parent
4c3df2e1e1
commit
6da0f82ddd
1 changed files with 2 additions and 2 deletions
|
@ -100,10 +100,10 @@ namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var data = _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key);
|
var data = await _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key);
|
||||||
var fileFormat = FileFormatOptions[FileFormatSelectedIndex].Key;
|
var fileFormat = FileFormatOptions[FileFormatSelectedIndex].Key;
|
||||||
_defaultFilename = _exportService.GetFileName(null, fileFormat);
|
_defaultFilename = _exportService.GetFileName(null, fileFormat);
|
||||||
_exportResult = Encoding.ASCII.GetBytes(data.Result);
|
_exportResult = Encoding.ASCII.GetBytes(data);
|
||||||
|
|
||||||
if (!_deviceActionService.SaveFile(_exportResult, null, _defaultFilename, null))
|
if (!_deviceActionService.SaveFile(_exportResult, null, _defaultFilename, null))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue