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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AutoFillServiceDescription">
The allow bitwarden to auto-fill into other Android apps and on the web through your browser, enable the bitwarden
To allow bitwarden to auto-fill into other Android apps and on the web through your browser, enable the bitwarden
accessibility service by tapping the toggle switch above, then press OK on the confirmation pop-up. You can then press
the back button twice to return to the main bitwarden app.
</string>

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;
}