Commit Graph
3585 Commits
Author SHA1 Message Date
Artem Samoilenko 7577892ea8 [Android] Minor code adjustments to the C119 upstream changes 2023-10-23 13:19:02 +01:00
Artem Samoilenko e62a3360c3 [Android] Change ChromeManagedPreferenceDelegate take an explicit Profile
Chromium change:
https://github.com/brave/chromium/commit/32c81cac97600dc1fcca2492171bfb296ab6453d

Change ChromeManagedPreferenceDelegate take an explicit Profile.
Bug: 1410601
2023-10-23 13:19:02 +01:00
Artem Samoilenko a42d0bbd5f [Android] Make IntentHandler stateless
Chromium change:
https://github.com/brave/chromium/commit/74c1833620fbc342306cf9e1df0c457c8a2fa253

Make IntentHandler stateless
IntentHandler is made more confusing by most of it being stateless
statics, and some of it being stateful for an Activity. There's no
reason for it to be stateful, so simplify by making it stateless.

Change-Id: Ic4d6e3c823c149f2a0ae027503dc4c7516cceaaa
2023-10-23 13:19:02 +01:00
Deep Pandya 32be78f050 Merge pull request #19958 from brave/submit_shields_report_with_url_android
Submit shields report with origin + path
2023-10-20 09:15:15 -04:00
Anton Paymyshev 6b1d38c465 Remove mojo KeyringInfo and lazy keyrings (#20488) 2023-10-20 10:00:46 +07:00
deeppandya 95a3f24667 Resolve presubmit warnings 2023-10-19 16:36:37 -04:00
deeppandya 430ce62112 Add path with host
Remove query from url
2023-10-19 16:15:21 -04:00
deeppandya 0f62d731ce Add expandable text view for url
Add textview with scroll
2023-10-19 16:15:12 -04:00
deeppandya cded763b32 Submit shields report with url instead of host
Refactor varianbles to reflect the change
2023-10-19 16:15:04 -04:00
taher d48924761f AIChat: show standalone premium prompt after 24h (#20548) 2023-10-19 08:09:21 -07:00
AlexeyBarabash 18a8c51be3 Request auth when changing sync password pref (#19477)
* Request device unlock when changing password sync

Fixes brave/brave-browser#30268
2023-10-19 16:12:24 +03:00
Szilard Szaloki 05a2dee456 Removes the ZebPay-specific userdrain tooltip. 2023-10-17 16:43:55 -05:00
Deep Pandya 3b7ed4de75 Merge pull request #20544 from brave/remove_userdrain_tooltip
Remove userdrain tooltip
2023-10-16 18:27:44 -04:00
Serg 1d079b3b35 Fixes a crash on BraveWalletSolanaConnectedSitesPreference destroy 2023-10-16 16:25:47 -04:00
deeppandya 8b9c0d677c Remove userdrain tooltip 2023-10-16 12:46:52 -04:00
Serg 875a2bc14a Opens Android Brave Leo Settings page on a web ui Settings click 2023-10-13 11:47:11 -04:00
Serg 88dd443003 Adds Reset Leo data preference on Android 2023-10-13 11:47:11 -04:00
deeppandya b70db28b16 Add null check for tipping bottomsheet 2023-10-12 06:27:25 -04:00
deeppandya 2e54d4338e Resolve crash for getting web3 url 2023-10-12 06:27:22 -04:00
Terry Mancey 9c5508d6a6 User is not rewarded for viewing Brave News inline ads after changing tabs 2023-10-11 15:10:22 -05:00
Terry Mancey c715d36fe0 Process inline ads view events when user is scrolling 2023-10-11 12:42:15 -05:00
Tapan Modh 42dae6f7ba Merge pull request #20387 from brave/add_custom_filter_button_selector_android
[Android] add custom filter button selector
2023-10-11 17:31:59 +05:30
tapanmodh 4853839ca6 add custom filter button selector android 2023-10-11 15:39:56 +05:30
tapanmodh 7394b52557 display bookmark export file path android 2023-10-11 12:17:32 +05:30
Deep Pandya 6060389143 Merge pull request #20469 from brave/resolve_block_cross_site_cookie_setting
Resolve Block cross-site cookie settings option
2023-10-10 17:12:09 -04:00
deeppandya 6c87227723 Add break for switch statement 2023-10-10 15:01:08 -04:00
Simone Arpe ec75711c56 (Wallet) Improve Wallet dark theme (#20465)
* Tweak primary text color and action bar background color

* Tweak chip selector colors

* Optimize text color attributes

* Network selector icon size

* Tweak Assets text view

* Apply new Wallet background color

* Tweak Wallet background color and toolbar background color

* Add divider lines below toolbar and above navigation bar

* Tweak bottom navigation view style and minor improvements

* Apply code formatting

* Remove duplicated style
2023-10-10 18:40:52 +02:00
tapanmodh 62ab90c3b3 fix crash in BraveNewTabPageLayout from gps android 2023-10-10 18:12:57 +05:30
Tapan Modh 45a4db1900 Merge pull request #20341 from brave/brave_news_optin_card_unsupported_regions_android
[Android] Don't show brave news optin card for unsupported regions
2023-10-09 11:55:28 +05:30
Deep Pandya 506948a4a5 Merge pull request #20223 from brave/30371_rewards_tipping_tablet_ui
Rewards tipping tablet UI
2023-10-06 15:37:18 -04:00
AlexeyBarabash 261fada6e7 Fixed Android build after rebase 2023-10-05 17:22:53 -07:00
AlexeyBarabash 93641b186f Connect/disconnect crypto accounts from ConnectAccountFragment through permissions 2023-10-05 17:22:52 -07:00
Simone Arpe 294d6f6db5 (Wallet) Fix NPE when accessing network object (#20416)
Fix NPE when accessing network object
2023-10-05 18:12:33 +02:00
Sujit 8f405437af Rewards tipping tablet UI 2023-10-05 18:16:31 +05:30
Simone Arpe fa85d6a03b Fix NFT visibility in BottomSheet fragment (#20361) 2023-10-05 14:42:43 +02:00
Artem Samoilenko 912f0e3d7e [Android] Updated comments for asm manipulations 2023-10-04 17:45:04 -04:00
Artem Samoilenko dc0a28687e [Android] Fix for text in URL bar not highlighted when focused
Related to this upstream change https://github.com/brave/brave-core/pull/19765/commits/5588d54a601700021a782071d83c03b7d2eff026
2023-10-04 17:15:33 -04:00
Deep Pandya 4dcdc0ceeb Merge pull request #20339 from brave/payout_status_banner_followup
Payout status banner follow up
2023-10-03 15:42:04 -04:00
Anton Paymyshev 54bc1f72e1 Account discovery to wallet service (#20324)
* Run account discovery from wallet service

* Cleanup KeyringInfo
2023-10-02 16:00:52 +07:00
deeppandya c0b6dc650f Add condition to check for last month ads statement 2023-09-29 17:27:39 -04:00
deeppandya ecfd73b8d9 Show payout begin banner
Show correct month for payout banner
2023-09-29 17:27:35 -04:00
tapanmodh 301f27cd6d Don't show brave news optin card for unsupported regions 2023-09-29 15:26:43 +05:30
Pavneet Singh 5cc1421d7f Siwe android UI updates (#20293)
* Update error dialog to 2.0 design

* Update account and error dialog per 2.0

* Fix error dialog UI
2023-09-28 09:50:15 +05:30
Artem Samoilenko 5588d54a60 [Android] Changes for omibox focus behaviour
Chromium change:
https://github.com/brave/chromium/commit/795632a1e53a0b1cf760238b2d5c7cb392fc0f22

Strip GestureDetector.
The change removes GestureDetector used to differentiate between
Omnibox taps and long-presses.

Long-press gesture has lost all its meaning back when we introduced
Search Ready Omnibox and Clipboard support: the omnibox comes up empty
(meaning the user cannot use the gesture to select all its content),
and cannot use this gesture to directly paste into the omnibox (it's
never been directly supported; we have dedicated actions for that).

As such, the long-press on the Omnibox does nothing else than focus
the Omnibox.

The change simplifies metrics reporting and obsoletes the
OmniboxFocusReason.OmniboxLongClick action.

The change further simplifies the focus flow by removing "set and
reset omnibox text": upon Focus event, LocationBarMediator no longer
sets the Omnibox text content (which next had to be cleared by the
EditUrlSuggestionProcessor). Instead, the LocationBarMediator supplies
an empty input right from the start. This works the same way the
current logic does, skipping one extra content setting, and
simplifying some of the Omnibox interfaces.

Change-Id: I067d538c2c0f424603ed520f6d9fbd06c5f5da6f
2023-09-27 13:08:23 +03:00
Artem Samoilenko a013297fbf [Android] Fix for the status view icon
Chromium change:
https://github.com/brave/chromium/commit/bc4d3e85c648ff7d6acb631163746efd4143b43c

[APS] Add tooltip text and circular highlight for StatusView
Demo: https://drive.google.com/file/d/19ZWK0emmShyTWOjdl52mvHrtz-6U1zxT/view?usp=sharing
Additional demo to verify long-click: https://drive.google.com/file/d/1AVdyEHtcRnJkVkexk8fjgN7Rmb6dklAF/view?usp=sharing

Bug: 1473109
2023-09-27 13:08:23 +03:00
Artem Samoilenko 5f57f88ea8 [Android] New signature for loadUrlForOmniboxMatch
Chromium change:
https://github.com/brave/chromium/commit/6561d5a54198fdf347de1af37f759ae1f126087e

[APS] Support keyboard shortcut to display omnibox search result in new
tab

When a search query is entered into the omnibox while a hardware
keyboard is connected, hitting ALT + ENTER should load the search result
in a new tab.

Phone:
https://drive.google.com/file/d/1oGRfLDZx9zlLSLVMN28UmdZsPhXkGK7Y/view?usp=sharing
Tablet:
https://drive.google.com/file/d/1jQfSk_3m9fiowvMFckhlIyB56ZdBWtkp/view?usp=sharing

Bug: 1451922
2023-09-27 13:08:23 +03:00
Artem Samoilenko 60217f548d [Android] Rename onUrlFocusChange to onOmniboxSessionStateChange
Chromium change:
https://github.com/brave/chromium/commit/698cb6c47e3e1005941f5b4e0289ba594454a4c7

[APS] Trigger zero-prefix dropdown on tapping the omnibox after it is
auto-focused

Opening the NTP automatically focuses on the omnibox with a blinking
cursor and without triggering the zero-prefix dropdown when a physical
keyboard is connected to a tablet device.

This CL adds support to show the zero-prefix dropdown when the omnibox
is tapped at this point.

This CL also renames/repurposes AutocompleteMediator#onUrlFocusChange() to report metrics and activate/deactivate the autocomplete session as follows:
1. The autocomplete session will not be activated when the omnibox is initially focused. This will be done only if the user taps on / types into the omnibox after such focus.
2. If the user chooses not to interact with the omnibox after such focus, the autocomplete session deactivation logic in this method will not be executed.

Bug: 1445822
2023-09-27 13:08:23 +03:00
Artem Samoilenko 1b587aea78 [Android] Replace setHandler with setSafetyNetApiHandler
Chromium change:
https://github.com/brave/chromium/commit/3a647ee2cbf2182d6d2e6f00a5452c14663ad3c8

[SBv5] Replace setHandler with setSafetyNetApiHandler
In https://crrev.com/c/4702473, we left a TODO to replace setHandler
with setSafetyNetApiHandler and remove setHandler.

The internal usage was removed in https://crrev.com/i/6342787

This CL is to replace the usage in the external repo.

Bug: 1444511
2023-09-27 13:08:22 +03:00
Artem Samoilenko 2aeb8fa8e7 [Android] Remove isGridTabSwitcherEnabled and isTabGroupsAndroidEnabled
Chromium changes:
https://github.com/brave/chromium/commit/f300646db04f84970e8d67045ce05dda5b968a90

[Tab Switcher] Remove isGridTabSwitcherEnabled
Now that M117 is branched and TabGroupsContinuationAndroid is the
default everywhere the old flags for the initial development of the Grid
Tab Switcher can finally be cleaned up.

This is the fourth step which removes the isGridTabSwitcherEnabled
method everywhere. As a result there are also a number of cascading
side effects in distant files.

Bug: 1466158

https://github.com/brave/chromium/commit/9724e9d8e7a2c1b07cd20964de56ab95bbdda72f

[Tab Switcher] Remove isTabGroupsAndroidEnabled
Now that M117 is branched and TabGroupsContinuationAndroid is the
default everywhere the old flags for the initial development of the Grid
Tab Switcher can finally be cleaned up.

This is the fifth step which removes the isTabGroupsAndroidEnabled
method everywhere. As a result there are also a number of cascading
side effects outside the tab switcher proper.

Bug: 1466158
2023-09-27 13:08:22 +03:00
Artem Samoilenko e7c9422d53 [Android] Minor code adjustments to the C118 upstream changes 2023-09-27 13:08:18 +03:00