Commit Graph
3559 Commits
Author SHA1 Message Date
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
deeppandya 1f6ac324cf Make on destroy public for override 2023-09-26 11:50:10 -04:00
deeppandya f1b69cda1c Dismiss dialogg on activity destroy 2023-09-26 10:28:05 -04:00
Deep Pandya f9c21dbd45 Merge pull request #20281 from brave/null_check_for_isVpnFeatureSupported
Null check for is vpn feature supported
2023-09-25 21:34:32 -04:00
Sujit Acharya 2a8e384bb6 Merge pull request #19983 from brave/32273_wrong_country_selected
Wrong selected country in rewards
2023-09-25 22:30:14 +05:30
deeppandya 8e41be7cae Remove unneccessary check for vpnm 2023-09-25 12:13:40 -04:00
deeppandya d42755ccbf Add null check for activity and is finishing 2023-09-25 11:57:48 -04:00
Sujit 0aa59abf20 Wrong selected country in spinner onboarding rewards
Auto focus default country
Sort all countries including special character
2023-09-25 16:34:30 +05:30
Pavneet Singh 1de9f42545 Siwe 2.0 Sign panel and details dialog (#20168)
* implement SIWE 2.0 sign dialog

* Implement SIWE details section

* Use domain models

* Show origin

* Implement SIWE details dialog and formatting

* Update layout design

* Clean up

* Minor review changes

* Add spacing

* Add missing SIWE detail fields

* Fix item spacing

* Show resources and host in details dialog

* Fix formatting

* Remove host field
2023-09-25 19:33:05 +09:00
wchen342 db6f29ef7c Merge pull request #20236 from brave/android_target_size_1
[Android] Accessibility fixes - Touch Target Size
2023-09-22 21:09:41 +00:00
wchen342 d8d4eb036c [Android] Add method to extend touch area without changing View appearances 2023-09-22 21:12:06 +03:00
Aleksey Khoroshilov bcaeae3c96 Merge pull request #20244 from brave/issues/33141
Download Griffin seed on first launch on Android.
2023-09-22 19:57:01 +07:00
Aleksey Khoroshilov b7b8c3e71d Download Griffin seed on first launch. 2023-09-22 13:56:57 +07:00
deeppandya 224fcbc5ad Add functions to get subscription values
Update subscription value to filter out free trial
2023-09-21 17:18:06 -04:00
deeppandya 4839adea55 Resolve presubmit error 2023-09-20 15:55:35 -04:00
deeppandya 0053ecabfd Remove resources for cookie consent notices modal 2023-09-20 14:13:41 -04:00
deeppandya 94785957c1 Remove cookie consent modal changes from toolbar layout 2023-09-20 12:35:41 -04:00
deeppandya 2daef891dd Remove condition for cookie consent notice settings option 2023-09-20 12:23:02 -04:00
Tapan Modh 1eb3ec14da Merge pull request #20212 from brave/remove_redirect_filter_settings_android
[Android] remove redirect for filter settings
2023-09-20 10:31:21 +05:30
deeppandya 7eaef45e7d Update retry logic for new api 2023-09-19 19:13:31 -04:00
deeppandya 3dabeb93de Refactor end connection to InAppPurchaseWrapper only 2023-09-19 19:13:28 -04:00
deeppandya 1a480afcb9 Explicitly end connection for billing client 2023-09-19 19:13:26 -04:00
tapanmodh a7294d0921 remove redirect for filter settings android 2023-09-19 11:42:32 +05:30
Sujit efc81ba250 Update text send with custodian 2023-09-17 12:13:37 +05:30
deeppandya fbbe42f030 Add deps to base module 2023-09-15 12:28:28 -04:00
Deep Pandya 8f0e5e8849 Merge pull request #20165 from brave/resolve_android_8_vpn_issue_master
Add proguard rule for datatransport runtime
2023-09-14 05:03:20 -04:00
deeppandya df65b1113a Add proguard rule for datatransport runtime 2023-09-14 03:12:08 -04:00