Commit Graph
1522 Commits
Author SHA1 Message Date
samartnik 2cefa0029a [Android] Singnature changes for various c-tors and functions
Chromium changes:
https://github.com/chromium/chromium/commit/159f4760b610b6ef203f51ad9e3bfba41d810213
[Read Later] Add reading list context menu to feed
Bug: 1254832

https://github.com/chromium/chromium/commit/12a19d884b272c3616767a3ef1a899b8543b68a9
Reland: [Start] Use NTP's page menu on Start surface.
This reverts commit 1d86228, since the
failing tests weren't caused by the original CL.

The original CL description:
In this CL, we plumb the StartSurfaceState into App menu. Thus, the app
menu could identify whether it is on the Start surface or Tab switcher.
This allows the Start surface use the same page menu as NTP, and GTS
uses the same overview menu with and without Start surface enabled.
Demo before:
https://drive.google.com/file/d/1B4BDcOE9rE05YEBL8iPEzAQh_1x3vjdr/view?usp=sharing
Demo after:
https://drive.google.com/file/d/1yvBOU9ei_lO5mcafsXbegA9kA2M6lq__/view?usp=sharing

(cherry picked from commit c866c1e)

Bug: 1257586, 1249086

https://github.com/chromium/chromium/commit/6e8fa444d5b501671724cc17e5387bfaafef4121
[AutoDark] Add metrics for changes from site settings
Also add few more unit tests to WebContentsDarkModeController.

Bug: 1241542, 1250800
2021-11-02 12:38:05 -04:00
samartnik 7a60fb612c [Android] Java code adjustments
Chromium changes:
https://github.com/chromium/chromium/commit/670a9e15d126af5600808cc08733447d5d474cd9

Update app menu to use MVC framework
Update AppMenu to use ModelListAdapter, also pass data between M-V-C by
ModelList instead of Menu.

BUG:1169999

https://github.com/chromium/chromium/commit/dd18c443f32d30a25395f07c82b5cc0680ec54eb

[AutoDark] Add Android auto dark metrics
Adding metrics that tracks the source for auto dark settings changes,
and theme settings entries.

Noting some of the enums are not used yet in this CL. There are added
based on the design doc (See http://shortn/_enU3FSpUBa)

Bug: 1241542, 1250800

https://github.com/chromium/chromium/commit/c6942d6678711188bfaf14ac85c9c6ee6c87be97

[MerchantTrust] Add store icon and related IPH to omnibox
This CL adds the store icon and its related IPH to omnibox. The icon is
shown when the merchant trust message is dismissed. We will add the icon
metrics and the IPH config in the later CLs.

Bug: 1252543
2021-11-02 12:38:04 -04:00
samartnik 7c57d3b276 [Android] Fixes for new tab overview theme
Chromium change:
https://github.com/chromium/chromium/commit/b364155d8f3c7e0085f510d7d0c6b9f5c9cf0a0a

Enable ThemeRefactorAndroid by default.
Bug: 1251194
2021-11-02 12:38:04 -04:00
samartnik fa5764a5aa [Android] Fixes for lint errors
Chromium change:
https://chromium.googlesource.com/chromium/src/+/a103102d100fc0d9c81fc97c0a6edfa26e6dee6a

Android: Update cmdline-tools and platform-tools

Updates cmdline-tools from 4.0 to 5.0.
Updates platform-tools from 31.0.2 to 31.0.3.

Fix:
- Updated baseline.xml files and suppressions.xml files for lint.

A follow-up CL will re-enable androidx custom lint checks.

Bug: 1225326
2021-11-02 12:38:04 -04:00
samartnik f32b635b44 [Android] New Incognito lock setting in the Privacy
Chromium change:
https://chromium.googlesource.com/chromium/src/+/551c025eaba441118a76bebd4ce19f82ee59099b

[Android] [Incognito Reauth] Add Incognito lock setting.

This CL adds the Incognito lock setting in the Privacy and Security
settings page behind the IncognitoReauthenticationForAndroid flag.

UX: go/incognito-auth-clank

Bug: 1227656
2021-11-02 12:38:04 -04:00
samartnik 65364da185 [Android] New c-tor signature for ToolbarManager
Chromium change:
https://chromium.googlesource.com/chromium/src/+/abef3409bba63c993e800a4a84a2ab184a0877ab

Reland "[MerchantTrust] Add "Store info" row to Trusted Surface"

This reverts commit 696bafd3941675e12c8af8f78213f43f28952a71.

Reason for revert: Disabled the failed test and will fix later

Original change's description:
> Revert "[MerchantTrust] Add "Store info" row to Trusted Surface"
>
> This reverts commit e1891597bd55a9bf8be91ee9944d4ca1c9e9f477.
>
> Reason for revert: a test is failing on builder "Lollipop Phone Tester" https://crbug.com/1252308
>
> Original change's description:
> > [MerchantTrust] Add "Store info" row to Trusted Surface
> >
> > This CL just adds the "Store info" row to Trusted Surface. We will
> > upload follow-up CLs to make it work correctly, see crbug.com/1248260.
> >
> > Bug: 1247747
> > Change-Id: I3889de3b1abd3229832575f3a38fe3fc5b8c6922
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3155502
> > Commit-Queue: Zhiyuan Cai <zhiyuancai@chromium.org>
> > Reviewed-by: Ayman Almadhoun <ayman@chromium.org>
> > Reviewed-by: Ted Choc <tedchoc@chromium.org>
> > Reviewed-by: Christian Dullweber <dullweber@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#924104}
>
> Bug: 1247747, 1252308
> Change-Id: Ie66296c90e5c20b675a3e68f76d945a0bab4df0e
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3178320
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Owners-Override: Alex Ilin <alexilin@google.com>
> Commit-Queue: Alex Ilin <alexilin@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#924227}

Bug: 1247747, 1252308
2021-11-02 12:38:04 -04:00
samartnik 153f208d83 [Android] ic_desktop_windows icon moved
Chromium change:
https://chromium.googlesource.com/chromium/src/+/34745fb9ae071b10c203874432173c4b895c49cf

[DesktopSite] Request Desktop Site Global Setting

Add content setting REQUEST_DESKTOP_SITE;
Add the content setting to the Android SiteSettings UI;
Hook up to TabImpl to set the user agent when creating a tab.

Bug: 1243758
2021-11-02 12:38:04 -04:00
samartnik d4aab3a760 [Android] SharedPreference UI_THEME_DARKEN_WEBSITES_ENABLED was removed
Chromium change:
https://chromium.googlesource.com/chromium/src/+/b5bb0984df77bbb1ae00a46069f5fdbead09cebd

[AutoDark] Remove SharedPreference UI_THEME_DARKEN_WEBSITES_ENABLED

Switching from java SharedPreference and fully rely on
ContentSettingsType.AUTO_DARK_WEB_CONTENT.

Noting that this change does not mirror the power of SiteSettings into
the ThemeSettings (will be addressed in follow up)

Bug: 1241542
2021-11-02 12:38:03 -04:00
Simon Hong ec8c86546f Merge pull request #10791 from brave/update_default_ntp_wallpaper_android
Updated default ntp wallpaper image on Android
2021-11-02 11:52:46 +09:00
Brian Clifton 44bbdfdd8e Merge pull request #10799 from brave/add-vpn-check-for-billing-deps
Add check for billing deps
2021-11-01 14:28:35 -07:00
wchen342 69449985b3 Merge pull request #10802 from brave/android_s_pendingintent_1
Fix Ads notification crash on Android S
2021-11-01 17:20:33 -04:00
Deep 229bb0d1ae Add check for billing deps 2021-11-01 16:01:17 -04:00
wchen342 f0f6565361 Format 2021-11-01 21:40:29 +02:00
wchen342 4e63e1c019 Change PendingIntentProvider call 2021-11-01 20:18:59 +02:00
Serg 15a5c6502c Fixes a potential crash on welcome screen on Android 2021-11-01 11:51:34 -04:00
AlexeyBarabash da3bc6f132 Merge pull request #10740 from brave/a_w_portfolio_graph
Update portfolio screen graph
2021-11-01 11:02:55 +02:00
Simon Hong 60f4de3b57 Updated default ntp wallpaper image on Android
fix https://github.com/brave/brave-browser/issues/19128
2021-11-01 14:11:01 +09:00
AlexeyBarabash c220feb6c9 Removed trace leftover (review notice) 2021-10-30 00:50:19 +03:00
AlexeyBarabash d5491e377c Default timeframe for asset detail graph is 1D (review notice) 2021-10-30 00:50:19 +03:00
AlexeyBarabash 16bb42e419 Fixed rebase issues 2021-10-30 00:50:14 +03:00
samartnik cd77a59187 [Android] Fixes for lint II 2021-10-29 12:40:24 -04:00
AlexeyBarabash 04d2e52e04 On switch graph timeframe do not re-fetch the main balance 2021-10-29 19:20:20 +03:00
AlexeyBarabash 473fc8b9ea Modifications for portfolio graph:
- displays the balance on touch according to choosen date;
 - it is possible to change the timeframe for the graph.
2021-10-29 19:16:34 +03:00
AlexeyBarabash 704a44da7a Update portfolio screen graph
fixes brave/brave-browser#18933
2021-10-29 19:10:55 +03:00
Serg dc1e2765b0 Fixes after reviews 2021-10-29 09:34:33 -04:00
Serg 75784a15ed Adds pending tx on wallet open 2021-10-29 09:34:33 -04:00
Jocelyn Liu 7b650a0e03 Remove hard-coded nonce in java frontend 2021-10-26 23:24:33 -07:00
Deep efa791bad6 Resolve SE order related issue 2021-10-26 06:05:01 -04:00
wchen342 07f865e511 Merge pull request #10660 from brave/java_s_fix
Fix PendingIntent flags on Android S+
2021-10-23 20:31:31 +03:00
wchen342 962dee9803 Format 2021-10-23 17:49:05 +03:00
wchen342 f4144eb050 Fix Intent flags 2021-10-23 00:50:12 +03:00
AlexeyBarabash 757b0d993d Merge pull request #10290 from brave/a_w_balance_erc20
Update portfolio screen in crypto wallets with real values(for ERC20 tokens)
2021-10-22 23:16:12 +03:00
AlexeyBarabash d97c50d53d Fixed rebase conflicts 2021-10-22 20:58:58 +03:00
aseren 185de43404 Merge pull request #10636 from brave/issues/18445
Correct the text for Request ads enable popup.
2021-10-23 00:54:25 +07:00
AlexeyBarabash 6e157ce798 Fixed java lint errors 2021-10-22 20:51:25 +03:00
AlexeyBarabash a67a59f8f9 Moved balance calculation logic into separate class 2021-10-22 20:51:23 +03:00
AlexeyBarabash 4a89491aa3 Moved multi-response classes to separate file AsyncUtils.java 2021-10-22 20:48:54 +03:00
AlexeyBarabash cc8a3020ae Query rates per each token separately
Need this to avoid a case when single unknown token can make failure
for the whole AssetRatioController.getPrice multi-tokens request.
2021-10-22 20:48:54 +03:00
AlexeyBarabash 1a430cfd17 Display proper icons in bottom assets list 2021-10-22 20:48:50 +03:00
AlexeyBarabash a871ae20ba Update portfolio screen in crypto wallets with real values(for ERC20 tokens) 2021-10-22 20:42:59 +03:00
Serg e02800f96e Review suggestions 2021-10-22 11:40:19 -04:00
Aleksey Seren d35708d751 Correct resource names for android.
fix https://github.com/brave/brave-browser/issues/18445
2021-10-22 13:21:09 +07:00
Serg 090bb81093 Implements ERC20 swap functionality on Android 2021-10-21 19:23:42 -04:00
Serg 3852635d17 Decimals fixes, moves assets bitmap read functionality inside Utils 2021-10-21 16:31:04 -04:00
Aleksey Seren 3713bb7413 Correct the text for Request ads enable popup.
fix https://github.com/brave/brave-browser/issues/18445
2021-10-21 16:12:12 +07:00
wchen342 7c0d912261 Format 2021-10-20 18:11:32 +03:00
wchen342 851982d0a9 Add bottom menu 2021-10-20 17:18:09 +03:00
wchen342 32968d675a Add file picker 2021-10-20 17:18:06 +03:00
samartnik 4ead3dd770 Merge pull request #10519 from brave/android_force_lint
[Android] Force lint checks for all build types
2021-10-19 16:22:06 -04:00
samartnik 91e2e44fa9 [Android] Force lint checks for all build types 2021-10-19 07:12:07 -04:00