From 045ce421684de1192ad52885cc9dc9f57b354fcb Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 21 Sep 2018 21:52:46 -0400 Subject: [PATCH] add alert for autofill extension --- src/App/Pages/Vault/VaultAddCipherPage.cs | 12 ++++++++++-- src/App/Resources/AppResources.Designer.cs | 9 +++++++++ src/App/Resources/AppResources.resx | 3 +++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/Vault/VaultAddCipherPage.cs b/src/App/Pages/Vault/VaultAddCipherPage.cs index 2020ac6fe..7ceac3b3e 100644 --- a/src/App/Pages/Vault/VaultAddCipherPage.cs +++ b/src/App/Pages/Vault/VaultAddCipherPage.cs @@ -245,8 +245,16 @@ namespace Bit.App.Pages _settings.AddOrUpdateValue(AddedLoginAlertKey, true); if(Device.RuntimePlatform == Device.iOS) { - DisplayAlert(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionAlert, - AppResources.Ok); + if(_deviceInfo.Version < 12) + { + DisplayAlert(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionAlert, + AppResources.Ok); + } + else + { + DisplayAlert(AppResources.PasswordAutofill, AppResources.BitwardenAutofillAlert, + AppResources.Ok); + } } else if(Device.RuntimePlatform == Device.Android && !_appInfoService.AutofillAccessibilityServiceEnabled) { diff --git a/src/App/Resources/AppResources.Designer.cs b/src/App/Resources/AppResources.Designer.cs index 56d2cdab2..0e21bff71 100644 --- a/src/App/Resources/AppResources.Designer.cs +++ b/src/App/Resources/AppResources.Designer.cs @@ -582,6 +582,15 @@ namespace Bit.App.Resources { } } + /// + /// Looks up a localized string similar to The easiest way to add new logins to your vault is by using the Bitwarden Password AutoFill extension. Learn more about using the Bitwarden Password AutoFill extension by navigating to the "Tools" screen.. + /// + public static string BitwardenAutofillAlert { + get { + return ResourceManager.GetString("BitwardenAutofillAlert", resourceCulture); + } + } + /// /// Looks up a localized string similar to Access your vault directly from your keyboard to quickly autofill passwords.. /// diff --git a/src/App/Resources/AppResources.resx b/src/App/Resources/AppResources.resx index 9258b093c..c933086e9 100644 --- a/src/App/Resources/AppResources.resx +++ b/src/App/Resources/AppResources.resx @@ -1349,4 +1349,7 @@ Password AutoFill + + The easiest way to add new logins to your vault is by using the Bitwarden Password AutoFill extension. Learn more about using the Bitwarden Password AutoFill extension by navigating to the "Tools" screen. + \ No newline at end of file