From 780761664d32a82fdc65bae9836828ce6fc2339a Mon Sep 17 00:00:00 2001
From: Contribucious <4764956+contribucious@users.noreply.github.com>
Date: Mon, 4 May 2020 15:28:28 +0200
Subject: [PATCH] Add support for Tor Browser (Alpha) (#872)
* Add Tor Browser (Alpha) to SupportedBrowsers dict
* Add Tor Browser (Alpha) to CompatBrowsers
* Add Tor Browser (Alpha) compatibility-package entry
---
src/Android/Accessibility/AccessibilityHelpers.cs | 1 +
src/Android/Autofill/AutofillHelpers.cs | 1 +
src/Android/Resources/xml/autofillservice.xml | 3 +++
3 files changed, 5 insertions(+)
diff --git a/src/Android/Accessibility/AccessibilityHelpers.cs b/src/Android/Accessibility/AccessibilityHelpers.cs
index 9362b3bb4..b7ffa10db 100644
--- a/src/Android/Accessibility/AccessibilityHelpers.cs
+++ b/src/Android/Accessibility/AccessibilityHelpers.cs
@@ -92,6 +92,7 @@ namespace Bit.Droid.Accessibility
new Browser("org.mozilla.reference.browser", "mozac_browser_toolbar_url_view"),
new Browser("org.mozilla.rocket", "display_url"),
new Browser("org.torproject.torbrowser", "url_bar_title"),
+ new Browser("org.torproject.torbrowser_alpha", "url_bar_title"),
}.ToDictionary(n => n.PackageName);
// Known packages to skip
diff --git a/src/Android/Autofill/AutofillHelpers.cs b/src/Android/Autofill/AutofillHelpers.cs
index 47dc7b495..aa859733b 100644
--- a/src/Android/Autofill/AutofillHelpers.cs
+++ b/src/Android/Autofill/AutofillHelpers.cs
@@ -77,6 +77,7 @@ namespace Bit.Droid.Autofill
"org.mozilla.reference.browser",
"org.mozilla.rocket",
"org.torproject.torbrowser",
+ "org.torproject.torbrowser_alpha",
};
// The URLs are blacklisted from autofilling
diff --git a/src/Android/Resources/xml/autofillservice.xml b/src/Android/Resources/xml/autofillservice.xml
index 03712f91e..b8eaa2fcb 100644
--- a/src/Android/Resources/xml/autofillservice.xml
+++ b/src/Android/Resources/xml/autofillservice.xml
@@ -143,4 +143,7 @@
+