From 4a01116e939ead872b72c2c232d653c1608ee685 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 5 Jun 2019 12:09:05 -0400 Subject: [PATCH] catch any errors on OpenAccessibilitySettings --- src/Android/Services/DeviceActionService.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Android/Services/DeviceActionService.cs b/src/Android/Services/DeviceActionService.cs index 23e7d0c4d..cb102e30c 100644 --- a/src/Android/Services/DeviceActionService.cs +++ b/src/Android/Services/DeviceActionService.cs @@ -535,9 +535,13 @@ namespace Bit.Droid.Services public void OpenAccessibilitySettings() { - var activity = (MainActivity)CrossCurrentActivity.Current.Activity; - var intent = new Intent(Settings.ActionAccessibilitySettings); - activity.StartActivity(intent); + try + { + var activity = (MainActivity)CrossCurrentActivity.Current.Activity; + var intent = new Intent(Settings.ActionAccessibilitySettings); + activity.StartActivity(intent); + } + catch { } } public void OpenAutofillSettings()