1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-01 08:03:37 +00:00

autofill typo and update layout timer

This commit is contained in:
Kyle Spearrin
2017-06-02 15:45:09 -04:00
parent fe1c58ad27
commit a7cbe526e3
2 changed files with 7 additions and 6 deletions

View File

@@ -167,18 +167,19 @@ namespace Bit.App.Pages
ScrollView = new ScrollView { Content = DisabledStackLayout };
if(Device.RuntimePlatform == Device.iOS)
UpdateEnabled();
Device.StartTimer(new TimeSpan(0, 0, 3), () =>
{
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Close));
}
UpdateEnabled();
return true;
});
Title = AppResources.AutofillService;
Content = ScrollView;
}
protected override void OnAppearing()
private void UpdateEnabled()
{
base.OnAppearing();
ScrollView.Content = _appInfoService.AutofillServiceEnabled ? EnabledStackLayout : DisabledStackLayout;
}