From d6818939b32c7a802d0b92e4d1e95098220dceec Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 1 Feb 2018 15:21:22 -0500 Subject: [PATCH] test: turn some things back on --- src/Android/AutofillService.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Android/AutofillService.cs b/src/Android/AutofillService.cs index 178b48b09..ef7dec52f 100644 --- a/src/Android/AutofillService.cs +++ b/src/Android/AutofillService.cs @@ -24,7 +24,7 @@ namespace Bit.Android private const string BitwardenPackage = "com.x8bit.bitwarden"; private const string BitwardenWebsite = "bitwarden.com"; - private static Dictionary SupportedBrowsers;/* => new List + private static Dictionary SupportedBrowsers => new List { new Browser("com.android.chrome", "url_bar"), new Browser("com.chrome.beta", "url_bar"), @@ -62,7 +62,7 @@ namespace Bit.Android new Browser("acr.browser.barebones", "search"), new Browser("com.microsoft.emmx", "url_bar"), new Browser("com.duckduckgo.mobile.android", "omnibarTextInput") - }.ToDictionary(n => n.PackageName);*/ + }.ToDictionary(n => n.PackageName); private readonly IAppSettingsService _appSettings; private long _lastNotificationTime = 0; @@ -70,14 +70,11 @@ namespace Bit.Android public AutofillService() { - //_appSettings = Resolver.Resolve(); + _appSettings = Resolver.Resolve(); } public override void OnAccessibilityEvent(AccessibilityEvent e) { - return; - - /* var powerManager = (PowerManager)GetSystemService(PowerService); if(Build.VERSION.SdkInt > BuildVersionCodes.KitkatWatch && !powerManager.IsInteractive) { @@ -88,6 +85,7 @@ namespace Bit.Android return; } + /* try { var root = RootInActiveWindow;