mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 06:03:40 +00:00
Android styling. Invoke lock and isbusy updates on main UI thread. ConfigureAwaits in sync service.
This commit is contained in:
@@ -28,12 +28,12 @@ namespace Bit.App.Controls
|
||||
{
|
||||
MessagingCenter.Subscribe<Application, bool>(Application.Current, "SyncCompleted", (sender, success) =>
|
||||
{
|
||||
IsBusy = _syncService.SyncInProgress;
|
||||
Device.BeginInvokeOnMainThread(() => IsBusy = _syncService.SyncInProgress);
|
||||
});
|
||||
|
||||
MessagingCenter.Subscribe<Application>(Application.Current, "SyncStarted", (sender) =>
|
||||
{
|
||||
IsBusy = _syncService.SyncInProgress;
|
||||
Device.BeginInvokeOnMainThread(() => IsBusy = _syncService.SyncInProgress);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,8 +84,11 @@ namespace Bit.App.Controls
|
||||
if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
Entry.FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label));
|
||||
Entry.TextColor = Color.Black;
|
||||
formStackLayout.Spacing = 0;
|
||||
if(!useLabelAsPlaceholder)
|
||||
{
|
||||
Entry.Margin = new Thickness(-4, -2, -4, -10);
|
||||
}
|
||||
}
|
||||
|
||||
if(!useLabelAsPlaceholder)
|
||||
|
||||
Reference in New Issue
Block a user