1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

catch any errors on OpenAccessibilitySettings

This commit is contained in:
Kyle Spearrin 2019-06-05 12:09:05 -04:00
parent 1cdc97f037
commit 4a01116e93

View File

@ -535,9 +535,13 @@ namespace Bit.Droid.Services
public void OpenAccessibilitySettings() public void OpenAccessibilitySettings()
{ {
var activity = (MainActivity)CrossCurrentActivity.Current.Activity; try
var intent = new Intent(Settings.ActionAccessibilitySettings); {
activity.StartActivity(intent); var activity = (MainActivity)CrossCurrentActivity.Current.Activity;
var intent = new Intent(Settings.ActionAccessibilitySettings);
activity.StartActivity(intent);
}
catch { }
} }
public void OpenAutofillSettings() public void OpenAutofillSettings()