Brings back upstream search widget on Android (#29416)

This is a revert of https://github.com/brave/brave-core/pull/28753
The reason: we received a lot of feedback from frustrated users that
the widget was very useful.
Resolves: https://github.com/brave/brave-browser/issues/46597
This commit is contained in:
Serg
2025-06-05 16:17:04 -04:00
committed by GitHub
parent 116a3581d3
commit 7bcbc8bc21
5 changed files with 3 additions and 22 deletions
+1
View File
@@ -106,6 +106,7 @@ brave_java_resources = [
"java/res/drawable-mdpi/uphold_green.png",
"java/res/drawable-mdpi/uphold_white.png",
"java/res/drawable-night-nodpi/ic_quick_action_search_and_bookmark_widget_preview.png",
"java/res/drawable-night-nodpi/widget_preview.png",
"java/res/drawable-night/bookmark_empty_state_illustration.xml",
"java/res/drawable-night/ellipse_217.xml",
"java/res/drawable-night/history_empty_state_illustration.xml",
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@@ -37,10 +37,6 @@
<ignore regexp="The resource `R.drawable.quick_action_search_widget_.*` appears to be unused"/>
<ignore regexp="The resource `R.drawable.hairline_border` appears to be unused"/>
<ignore regexp="The resource `R.string.dino_widget_description` appears to be unused"/>
<ignore regexp="The resource `R.string.search_widget_description` appears to be unused"/>
<ignore regexp="The resource `R.string.search_widget_title` appears to be unused"/>
<ignore regexp="The resource `R.xml.search_widget_info` appears to be unused"/>
<ignore regexp="The resource `R.drawable.widget_preview` appears to be unused"/>
<ignore regexp="The resource `R.style.IncognitoTextViewWithClickableSpans` appears to be unused"/>
<ignore regexp="The resource `R.style.IncognitoNewTabLearnMoreLinkModernTextView` appears to be unused"/>
<ignore regexp="The resource `R.style.IncognitoNewTabTextView` appears to be unused"/>
@@ -1,5 +1,5 @@
diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml
index 54244bbdcb5a7599c6182e6092236f29b4b7a795..06feab4bb82d43237dbcbd170d0dabf8ba313ffd 100644
index 54244bbdcb5a7599c6182e6092236f29b4b7a795..02c2a50e2f23783c64113c3c022d446f4e3b8ded 100644
--- a/chrome/android/java/AndroidManifest.xml
+++ b/chrome/android/java/AndroidManifest.xml
@@ -28,6 +28,7 @@ by a child template that "extends" this file.
@@ -90,23 +90,7 @@ index 54244bbdcb5a7599c6182e6092236f29b4b7a795..06feab4bb82d43237dbcbd170d0dabf8
<!-- Bookmarks widget -->
<receiver android:name="com.google.android.apps.chrome.appwidget.bookmarks.BookmarkThumbnailWidgetProvider"
@@ -936,6 +952,7 @@ by a child template that "extends" this file.
android:exported="false" />
<!-- Search widget -->
+ <!--
<receiver
android:name="org.chromium.chrome.browser.searchwidget.SearchWidgetProvider"
android:label="@string/search_widget_title"
@@ -947,6 +964,7 @@ by a child template that "extends" this file.
android:name="android.appwidget.provider"
android:resource="@xml/search_widget_info" />
</receiver>
+ -->
<!-- Search Activity -->
<activity android:name="org.chromium.chrome.browser.searchwidget.SearchActivity"
@@ -1217,6 +1235,7 @@ by a child template that "extends" this file.
@@ -1217,6 +1233,7 @@ by a child template that "extends" this file.
</activity>
{% endif %}