From a7cbe526e322fb24ac363855d60641c03e975d7a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 2 Jun 2017 15:45:09 -0400 Subject: [PATCH] autofill typo and update layout timer --- src/Android/Resources/values/strings.xml | 2 +- src/App/Pages/Tools/ToolsAutofillServicePage.cs | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Android/Resources/values/strings.xml b/src/Android/Resources/values/strings.xml index f8e4bce12..4220f86af 100644 --- a/src/Android/Resources/values/strings.xml +++ b/src/Android/Resources/values/strings.xml @@ -1,7 +1,7 @@  - 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. diff --git a/src/App/Pages/Tools/ToolsAutofillServicePage.cs b/src/App/Pages/Tools/ToolsAutofillServicePage.cs index aac4a7fd7..f2a16c738 100644 --- a/src/App/Pages/Tools/ToolsAutofillServicePage.cs +++ b/src/App/Pages/Tools/ToolsAutofillServicePage.cs @@ -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; }