add alert for autofill extension

This commit is contained in:
Kyle Spearrin 2018-09-21 21:52:46 -04:00
parent edef84a4f9
commit 045ce42168
3 changed files with 22 additions and 2 deletions

View file

@ -244,10 +244,18 @@ namespace Bit.App.Pages
{
_settings.AddOrUpdateValue(AddedLoginAlertKey, true);
if(Device.RuntimePlatform == Device.iOS)
{
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)
{
DisplayAlert(AppResources.BitwardenAutofillService, AppResources.BitwardenAutofillServiceAlert,

View file

@ -582,6 +582,15 @@ namespace Bit.App.Resources {
}
}
/// <summary>
/// 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 &quot;Tools&quot; screen..
/// </summary>
public static string BitwardenAutofillAlert {
get {
return ResourceManager.GetString("BitwardenAutofillAlert", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Access your vault directly from your keyboard to quickly autofill passwords..
/// </summary>

View file

@ -1349,4 +1349,7 @@
<data name="PasswordAutofill" xml:space="preserve">
<value>Password AutoFill</value>
</data>
<data name="BitwardenAutofillAlert" xml:space="preserve">
<value>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.</value>
</data>
</root>