From 954ed6457c8ed677fe14224a2c63233c7b929c4c Mon Sep 17 00:00:00 2001
From: Contribucious <4764956+contribucious@users.noreply.github.com>
Date: Sat, 23 May 2020 03:06:11 +0200
Subject: [PATCH] Add support for Privacy Browser (Free/Standard). Closes #407
(#915)
* Add Privacy Browser (Free/Standard) to SupportedBrowsers dict
* Add Privacy Browser (Free/Standard) to CompatBrowsers
* Add Privacy Browser (Free/Standard) compatibility-package entries
---
src/Android/Accessibility/AccessibilityHelpers.cs | 2 ++
src/Android/Autofill/AutofillHelpers.cs | 2 ++
src/Android/Resources/xml/autofillservice.xml | 6 ++++++
3 files changed, 10 insertions(+)
diff --git a/src/Android/Accessibility/AccessibilityHelpers.cs b/src/Android/Accessibility/AccessibilityHelpers.cs
index 1813cca3e..db5305b34 100644
--- a/src/Android/Accessibility/AccessibilityHelpers.cs
+++ b/src/Android/Accessibility/AccessibilityHelpers.cs
@@ -59,6 +59,8 @@ namespace Bit.Droid.Accessibility
new Browser("com.qwant.liberty", "url_bar_title"),
new Browser("com.sec.android.app.sbrowser", "location_bar_edit_text"),
new Browser("com.sec.android.app.sbrowser.beta", "location_bar_edit_text"),
+ new Browser("com.stoutner.privacybrowser.free", "url_edittext"),
+ new Browser("com.stoutner.privacybrowser.standard", "url_edittext"),
new Browser("com.vivaldi.browser", "url_bar"),
new Browser("com.vivaldi.browser.snapshot", "url_bar"),
new Browser("com.vivaldi.browser.sopranos", "url_bar"),
diff --git a/src/Android/Autofill/AutofillHelpers.cs b/src/Android/Autofill/AutofillHelpers.cs
index dd1003236..73f1505d0 100644
--- a/src/Android/Autofill/AutofillHelpers.cs
+++ b/src/Android/Autofill/AutofillHelpers.cs
@@ -65,6 +65,8 @@ namespace Bit.Droid.Autofill
"com.qwant.liberty",
"com.sec.android.app.sbrowser",
"com.sec.android.app.sbrowser.beta",
+ "com.stoutner.privacybrowser.free",
+ "com.stoutner.privacybrowser.standard",
"com.vivaldi.browser",
"com.vivaldi.browser.snapshot",
"com.vivaldi.browser.sopranos",
diff --git a/src/Android/Resources/xml/autofillservice.xml b/src/Android/Resources/xml/autofillservice.xml
index 4911b9f41..b1a349e00 100644
--- a/src/Android/Resources/xml/autofillservice.xml
+++ b/src/Android/Resources/xml/autofillservice.xml
@@ -91,6 +91,12 @@
+
+