Commit Graph
1341 Commits
Author SHA1 Message Date
Serg 7bcbc8bc21 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
2025-06-05 16:17:04 -04:00
aseren 5652fe9124 [ads] Survey panelist: Android (#29360) 2025-06-04 09:04:47 -05:00
Simone Arpe 660020c778 Tweak background video playback description in flag page (#29207)
* Tweak background video playback description in flag page
* Remove redundant call to allow Javascript injection
The method `content::RenderFrameHost::AllowInjectingJavaScript()` is already called in
`background_video_playback_tab_helper` for those domains that correctly have a match so
it's not needed in `brave_browser_main_parts`.
* Fix boolean logic
* Make `IsBackgroundVideoPlaybackEnabled` method more readable
* Remove unneeded predefined default value from XML
* Refactor logic and remove old code
* Enable background video playback preference by default
* Remove unused constant
2025-05-29 11:33:22 +02:00
samartnik 81cd3abcd1 [Android] New Mobile Bookmarks homepage setting (#29051)
* [Android] New Mobile Bookmarks homepage setting

* [Android] Mobile bookmarks string correction

* [Android] Code review suggestions

* Replaces direct patch with bytecode and adds eol

* Moves test method from dummy to the main class

* Direct patch xmls and typo fix

* BaseJUnit4ClassRunner to ChromeJUnit4ClassRunner for tests

* Fixes presubmit issues for tests
2025-05-16 23:05:03 +02:00
samartnik a2725afde8 [Android] Updates download page menu icon (#29091)
* [Android] Updates download page menu icon

* [Android] Adds header to ic_download icon
2025-05-16 00:38:49 +02:00
Artem Samoilenko 26550166f3 [Android] Main settings reorganisation
- Renamed `Autofill` section to `Passwords and Autofill`
- Moved `Brave Password Manager` and `Autofill services` to the new section
2025-05-15 13:44:41 -04:00
Artem Samoilenko deb3ac4cde [cr137] [Android] Toolbar text box color rename
Chromium change:
https://chromium.googlesource.com/chromium/src/+/60bd853aed5f8599a5508a78e45665ddd042fc76

[Surface Color] Omnibox & toolbar

Light:
Toolbar: surface 0 -> surface
Omnibox bg: surface 4 -> surface container high

Dark:
Toolbar: Surface 0 -> Surface
Omnibox bg: surface 4 -> surface container highest

Before:
https://screenshot.googleplex.com/4dX62JRmShEBsBw
https://screenshot.googleplex.com/4B2SZSYpaF5pPBh

After:
https://screenshot.googleplex.com/9kFF4eMkD4FscZV
https://screenshot.googleplex.com/6jpDFSwPNBaWHgk

ChromeColors#getDefaultThemeColor, which is used for the toolbar bg, is already set to colorSurface.

Bug: 406890625
2025-05-13 15:52:47 -04:00
Simone Arpe 7850105ddd (Wallet) Implement ZCash support on Android Wallet (#28883)
* Add required string for Android

* Perform small refactoring

* Introduce support for ZCash Mainnet and Testnet

* Implement logic to extract Zec data

* Improve fragment transaction UI

* Apply code formatting

* Switch ApproveTxBottomSheetDialogFragment to NullAway annotations

* Switch TxDetailsFragment to NullAway annotations

* Rename variable

* Switch SiweMessageFragment to NullAway annotations

* Switch AssetUtils to NullAway annotations

* Switch Utils to NullAway annotations

Removes unused methods and strings.
Adds missing ZCash vector asset.

* Switch ParsedTransaction to NullAway annotations

* Switch ParsedTransactionFees to NullAway annotations

* Remove unused parameters from methods and constructors

* Switch ApproveTxFragmentPageAdapter to NullAway annotations

* Switch TxFragment to NullAway annotations

* Introduce assert instead of throwing

* Add ZCash vector asset

* Extract Zec data into proper field
2025-05-07 20:01:03 +02:00
Serg e59261e886 Retrieve BraveNewsService by profile (#28783)
* Passes profile from Java to BraveNewsController factory. Removes BraveNewsController member from BraveActivity.
2025-04-24 20:20:27 -04:00
aseren 1ff768b451 [ads] Add New Tab Takeover Learn More link in settings (#28597) 2025-04-24 16:22:21 -05:00
Deep Pandya 1a08762a2d Add a separate target for quick search engine feature (#26478)
* Move java classes into brave/browser for quick_search_engines

* Move serach_engines resources to brave/browser/search_engines

* Add translations files for search_engines android string

* Add dimens

Add a function to load favicons

* Add close menu id for quick search

* Add missing deps

* Move quick search engines changes to brave/browser/quick_search_engines

* Remove comments for BUILD.gn
2025-04-23 17:00:28 -04:00
Deep Pandya 53ba9ecc1d Add patch to remove chromium search widget (#28753)
* Add patch to remove chromium search widget

* Add lint suppression for search widget
2025-04-23 10:38:26 -04:00
Deep Pandya 2ac20d220d Make auto reconnect warning text to Invisible (#28716)
* Make auto reconnect warning text to Invisible

* Calculate height dynamically for warning textview
2025-04-21 14:10:52 -04:00
AlexeyBarabash 72b40f7798 [cr136][Android] Removed tab_resumption_module_container_stub layout
Related Chromium changes:
https://source.chromium.org/chromium/chromium/src/+/f8de93495c1d5e041d25dfd02d60f03ff1fabeed

	[Android TRM] Remove R.id.tab_resumption_module_container_stub.

	In crrev.com/c/5297855, the Tab Resumption Module was integrated into
	the Magic Stack. Therefore it no longer needs the ViewStub
	R.id.tab_resumption_module_container_stub as the top level layout, but
	it still lingers. This CL deletes the now useless ViewStub.

	Bug: 1515325
	Change-Id: I358b64ef57c267629230578cf8dc5b28af3d7dfc
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5734353

https://source.chromium.org/chromium/chromium/src/+/28cde898edae21f1b807d3e0e43d62701837ac7a

	[Android TRM] Remove feature and most of the code.

	This CL removes the Android Tab Resumption Module:
	* Remove chrome/browser/tab_resumption.
	* Remove flags and configs.
	* Remove 5 UI strings: IDS_TAB_RESUMPTION_MODULE_*,
	  IDS_N_{MINUTES,HOURS}_AGO_NARROW.
	* Remove resources.

	Need to keep for metrics:
	* tools/metrics/histograms/enums.xml entry.

	Out of scope of this CL; TODO in follow-ups:
	* NTP Customization features and tests involving the TRM (will remove in
	  follow-up).
	* Keep IDS_TAB_RESUMPTION_MODULE_SEE_MORE "See more": This got reused by
	  Tab Switcher.
	* Keep IDS_HOME_MODULES_TAB_RESUMPTION_TITLE "Continue with this tab" /
	  "Continue with these tabs": Used by Single Tab Module.

	Unaffected:
	* TRM still exists on Desktop and iOS. Tab data sync from Android
	  continue to work same as before.

	Bug: 400479323, 400479745
	Change-Id: I38cc101c361c761d38dff931b7ab6d15960836fa
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6408054
2025-04-16 09:30:32 +01:00
AlexeyBarabash 290d8493e4 [cr136][Android] SyncConsent fragments and activity were removed
FirstRunFlowSequencer.onFlowIsKnown() argument is changed from bundle to boolean

down_arrow drawable was used at
//chrome/browser/ui/android/signin/java/res/layout/signin_view.xml
and now is also removed

Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/aae9d74edf5532ed12952d4961a7ee20c3c6b092

	[Android] Remove SyncConsent fragments and activity

	This cl removes the following classes:
	- SyncConsentFragmentBase
	- SyncConsentFragment
	- SyncConsentFirstRunFragment
	- SyncConsentActivity
	- All xml resources related to these classes

	FirstRunFlowSequencer.onFlowIsKnown() argument is changed from bundle
	to boolean.

	Bug: 350461111
	Change-Id: If1ad68f40e98f843d42f1b3903878c22af6ed2cb
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6169618
2025-04-16 09:30:22 +01:00
Deep Pandya 2cfff090f4 Update changes for always on to auto reconnect (#28615)
* Update changes for always on to auto reconnect

* ADd quotes to hightlight Block connections without VPN
2025-04-13 23:16:06 +02:00
Aleksei Khoroshilov 4bc5f98325 Fix xml license check (#28575)
* Fix xml license header check.

* Format.

* Update some license headers to match the required format.
2025-04-10 12:34:45 +07:00
Deep Pandya 2b756daa09 Android onboarding variants (#28426)
* Add support for diferent variants

* Remove omnibox highlight which shows up right after onboarding

* Add different variants function

* Add search widget promo on NTP

* Add notification permission changes

* Update widget promo UI

* Update wdp check

Resolve presubmit issue
2025-04-03 10:52:03 -04:00
Artem Samoilenko 2e7944d3e9 [Android] Update colors for Address bar setting and empty state icons 2025-03-31 14:39:09 -04:00
Artem Samoilenko 58b5cece04 [Android] Update file names for icons to match Figma 2025-03-27 14:16:28 -04:00
Artem Samoilenko 152d7a4103 [Android] Additional improvements for bottom address bar
- Moved address bar to bottom on NTP
- Moved menu and updated menu icons and texts
- Added request for relaunch when bottom navigation controls are enabled
- UI and visual improvements
2025-03-27 09:11:22 -04:00
Jay Harris d8e73170c8 [Omnibox]: Hide OnDeviceHeadProvider suggestions when top suggestion are disabled (#28094)
* [Omnibox]: Hide OnDeviceHeadProvider suggestions when top suggestions are disabled

* Setup OnDeviceHeadModel
2025-03-24 09:33:38 +01:00
Deep Pandya 86e6934b52 Remove search engine onboarding (#28230)
* Remove search engine onboarding

* Remove onUrlFocusChange callback
2025-03-21 00:15:47 -04:00
Deep Pandya 637c20608e Add an option to remove Leo from quick search engine bar (#28229) 2025-03-20 14:29:57 -04:00
Artem Samoilenko 37134ad086 [Android] Rename appearance settings resource
Chromium change:
https://chromium.googlesource.com/chromium/src/+/791fd6f95c875db2e132bee7f831563c690fe001

Add "Theme" settings menu option to new "Appearance" settings page.

This CL adds the "Theme" settings menu option to the new "Appearance"
settings page. In a follow up CL, a pref summary will be added as well.

Design: http://shortn/_oxzSbwNuTe

NO_IFTTT=New check

Bug: 397775252
2025-03-18 20:02:15 -04:00
Deep Pandya 83d7e13c44 Add an option to allow users to take screenshots in private mode (#28142)
* Add an option to allow users to take screenshots in private mode

* Update strings for settings option and format code

* Update title/description for private tab screenshot option
2025-03-17 16:57:44 -04:00
vadims b3e162dba1 Additional Shields menu item to show all blocked elements(same as reset) (#27910)
Additional Shields menu item to show all blocked elements(same as reset)
(https://github.com/brave/brave-browser/issues/43955)

---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2025-03-13 15:54:57 +01:00
Deep Pandya b4c5eef3c9 Add close button to close rewards panel (#27888)
* Add close button to close rewards panel

* Update close icon for rewards 3.0 panel
2025-03-05 10:02:03 -05:00
Deep Pandya f43c3e20b1 Move WDP settings (#27889)
* Move WDP settings from privacy to search engines

* Update privacy settings test
2025-03-03 15:15:07 -05:00
Deep Pandya 1247dd3771 Improve set as default prompt (#27779)
* Open settings to set default browser app from main menu

* Add conditions for app open count & dialog

* Remove notifications for set as default

* Add conditions for days timer

* Add changes to support < android 10 devices

* Add comments and refactor functions
2025-02-28 15:11:30 -05:00
aseren eb477214e5 Merge pull request #27645 from brave/issues/43513
[ads] RichNTT: Android
2025-02-27 17:22:00 -05:00
Aleksei Seren 424ad890b2 [ads] RichNTT: Android 2025-02-27 12:12:59 -05:00
Deep Pandya a5c0b652be Rewards 3.0 android (#26945)
* Add rewards 3.0 feature flag

* Add a function to check for rewards 3.0 flag

Update entry points for rewards with rewards 3.0 flag

* Add RewardsPageActivity/RewardsCustomTabRootUiCoordinator to show rewards 3.0 changes in custom tab

* Address rewards reset for rewards 3.0

* Add activity transition for rewards page

* Remove onBackPressed override

* Add close button to close the rewards panel as we have disabled back press

Update close button position on the page

* Add creator changes for rewards 3.0

Remove logs

Add null check

Remove changes for backpress

* Add changes for handling creators

Encode Url for creators

* Add open url native fucntion

* Add bubble in query params

* Add bytecode changes for BaseCustomTabActivity

Add native function to open url into rewards_page_ui

* Update copyright header year

* Update close icon for rewards page

Remove comments and refactor changes

* Address naming related changes

* Add test for bytecode changes

Resolve rebase error

* Update changes to use TabUtils open tab

* Remove close button

* Add FullScreenCustomTabActivity
2025-02-22 16:34:57 -05:00
Deep Pandya 50c2e997d9 Add Tabs icon in settings (#27725)
* Add Tabs icon in settings

* Update icon tint
2025-02-20 14:09:55 -03:00
Deep Pandya f7c6cfdd66 Add landscape UI for vpn paywall page (#27479) 2025-02-07 20:36:05 +01:00
samartnik ed6768db49 Merge pull request #27542 from brave/android_initial_bottom_address_bar_integration
[Android] Initial bottom address bar integration
2025-02-07 12:08:33 -05:00
Deep Pandya c96125629b Update search engine onboarding icons with vector drawables (#27541) 2025-02-07 11:57:02 -05:00
Deep Pandya 8a53a7facd Add leo paywall for landscape (#27482)
Update copyright year
2025-02-06 18:45:24 +01:00
Artem Samoilenko bb1955f824 [Android] Initial bottom address bar integration 2025-02-05 15:28:16 -05:00
Darnell Andries cf94b54d8b Bootstrap Web Discovery Native, add credential manager and server config loading 2025-01-27 18:22:39 -08:00
Artem Samoilenko eedeae5ab2 [Android] Clean up modern_grey colors
Chromium change:
https://chromium.googlesource.com/chromium/src/+/e99dac41a65779af4bfb8a15cde443478f51cc2f

[clank-q4-fixit] Clean up modern_grey colors pt 2

Bug: 40910276
2025-01-27 09:41:36 -05:00
Artem Samoilenko cc8c69c7ec [Android] Clean up for UnusedMethod and UnusedVariable lint errors 2025-01-27 09:36:40 -05:00
Artem Samoilenko 0e2dd52b7b [Android] Rename secure state icons
Chromium change:
https://chromium.googlesource.com/chromium/src/+/18371dfa10268ba754ca5cbd75beda9038f82503

[omnibox] Rename Android secure state icons to reflect their function.

The omnibox secure state indicator was refreshed last year to show a page info icon instead of a lock icon. As of https://crrev.com/c/5982459, the refreshed state became the only state for the omnibox indicator but the icon was still named "refresh" and the old lock icon was still in use in other surfaces.

This CL changes the icon names to "page_info" and "lock" to clearly distinguish them.

Change-Id: Ic7175efccbed0dbbd1523827873b26c4209b4e67
2025-01-27 09:36:35 -05:00
SergandFrancois Marier 0fb665213a Adds a settings to show SafeBrowsing errors under Developer options on Android (#27333)
* Adds a settings to show SafeBrowsing errors under Developer options on Android

* Update browser/ui/android/strings/android_brave_strings.grd

Co-authored-by: Francois Marier <francois@brave.com>

* Fixes a header

---------

Co-authored-by: Francois Marier <francois@brave.com>
2025-01-24 10:35:03 -05:00
deeppandya fe7033fcc3 Remove Brave logo for > android 9 devices and update existing chnages
Refactor the changes and add comments

Improve formatting and comments
2025-01-16 15:38:31 -05:00
Simone Arpe f4d205a7b6 (Wallet) Fix Dapps dialog not dismissed when creating a new tab (#27249)
Fix Dapps dialog not dismissed correctly when creating a new tab
2025-01-15 19:31:19 +01:00
vadims cefa148556 [Webcompat report dialog] Contact info still appears in the form after deleting (#27155)
[Webcompat report dialog] Contact info still appears in the form after deleting
(https://github.com/brave/brave-browser/issues/43166)
---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2025-01-14 23:15:15 +01:00
vadims 53b345a109 Warning text if the user has currently selected Block all cookies (#27090)
Warning text if the user has currently selected Block all cookies
(https://github.com/brave/brave-browser/issues/42295)
Webcompat Reporter: add cookie policy and script blocking to reports
(https://github.com/brave/brave-browser/issues/42062)
---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2025-01-10 13:49:10 +01:00
deeppandya 42621330b0 Remove AC layout from rewards panel
Remove unused resources

Improve format
2025-01-09 16:51:51 -05:00
Deep Pandya 0478f80792 Merge pull request #27052 from brave/remove_cross_promo_dialog
Remove cross promo dialog
2024-12-26 10:54:06 -07:00