mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 00:03:22 +00:00
run subscribed messages on main thread
This commit is contained in:
@@ -27,9 +27,12 @@ namespace Bit.App.Pages
|
||||
{
|
||||
if(message.Command == "selectFileResult")
|
||||
{
|
||||
var data = message.Data as Tuple<byte[], string>;
|
||||
_vm.FileData = data.Item1;
|
||||
_vm.FileName = data.Item2;
|
||||
Device.BeginInvokeOnMainThread(() =>
|
||||
{
|
||||
var data = message.Data as Tuple<byte[], string>;
|
||||
_vm.FileData = data.Item1;
|
||||
_vm.FileName = data.Item2;
|
||||
});
|
||||
}
|
||||
});
|
||||
await LoadOnAppearedAsync(_scrollView, true, () => _vm.InitAsync());
|
||||
|
||||
Reference in New Issue
Block a user