Commit Graph
1522 Commits
Author SHA1 Message Date
samartnik bdebe2ff64 [Android] New c-tor signatures for FeedSurfaceCoordinator and NewTabPage 2021-08-18 10:59:59 -04:00
samartnik b96f1b781a [Android] Fixed accent color
Chromium change:
https://chromium.googlesource.com/chromium/src/+/296e58b25a68baf8bf044234555c7bd157d5d761

[GMNext][TabSwitcher] Change selection style to material next

Disabled: Selected tab will have a hairline drawable foreground;
Enabled: Selected tab will be tinted into primary color.

Color in incognito mode will be using the ones for dark mode, and will
not support dynamic colors.

(The update for thumbnail is not included in this CL)

Spec see original bug attached.

Bug: 1217141
2021-08-18 10:59:54 -04:00
samartnik 595fa6de1e [Android] Fix for lint error 2021-08-18 10:59:52 -04:00
samartnik f9ea0dc281 [Android] C-tor signature for FeedSurfaceCoordinator was changed 2021-08-18 10:59:46 -04:00
samartnik 009f8652eb [Android] Adjusted java code to new c-tor and function signatures 2021-08-18 10:58:50 -04:00
samartnik dc2e0b92ea [Android] Fixed assert for favicon for not valid GURL
Chromium change:
https://chromium.googlesource.com/chromium/src/+/ca63ae8c5f7d1ee23cb865ffe0a51159950ff8cc

[GURL] Remove Tab.getUrlString calls from Favicon code.

This starts the process of threading GURL into favicon code
but there's a lot of it. :/

Also removes a bunch of dead code I came across in FaviconHelper.

Bug: 783819
2021-08-18 10:58:40 -04:00
samartnik 8a49a29d19 [Android] Changed base app color
Chromium change:
https://chromium.googlesource.com/chromium/src/+/296e58b25a68baf8bf044234555c7bd157d5d761

[GMNext][TabSwitcher] Change selection style to material next

Disabled: Selected tab will have a hairline drawable foreground;
Enabled: Selected tab will be tinted into primary color.

Color in incognito mode will be using the ones for dark mode, and will
not support dynamic colors.

(The update for thumbnail is not included in this CL)

Spec see original bug attached.

Bug: 1217141
2021-08-18 10:58:37 -04:00
samartnik 0021d75620 [Android] Changes for modularized toolbar
Additionaly fixed:
- c-tor signatures for various classes
- explicitly added header for network::ResourceRequest

Chromuim change:
https://chromium.googlesource.com/chromium/src/+/2c6cbee37831bffa83494c98eca09a8ca9def489

Modularize toolbar/

Moves the files in chrome/browser/toolbar (except some glue code) and
related resources to chrome/browser/ui/android/toolbar.

Bug: 1127732
2021-08-18 10:58:37 -04:00
samartnik 866683157a [Android] Changes for MenuButton implementation
Chromium change:
https://chromium.googlesource.com/chromium/src/+/4a6f627495111794c56c46873349521bcc9b5b22

Toolbar: Remove deps on chrome/browser/omaha

This CL applies some refactoring around toolbar/omaha in preparation
for toolbar modularization:

- Moves menu button/ui/item state definitions from
   c.b.omaha.UpdateMenuItemHelper to toolbar/menu_button
- Inject MenuButtonState supplier to MenuButton MVC instead of
   the components calling UpdateMenuItemHelper directly

Bug: 1127732
2021-08-18 10:57:07 -04:00
samartnik e3ebbace0e [Android] Java code adjustments
Mostly related to changes for various c-tor signatures.
2021-08-18 10:57:06 -04:00
Mario Sanchez Prada bc1c273607 Adapt to two new parameters in MenuButtonCoordinator's constructor
Also needed to adapt the constructor of BraveMenuButtonCoordinator
to pass the two newly-added parameters to the base class.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/4a6f627495111794c56c46873349521bcc9b5b22

commit 4a6f627495111794c56c46873349521bcc9b5b22
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date:   Wed Jun 23 01:35:50 2021 +0000

    Toolbar: Remove deps on chrome/browser/omaha

    This CL applies some refactoring around toolbar/omaha in preparation
    for toolbar modularization:

    - Moves menu button/ui/item state definitions from
       c.b.omaha.UpdateMenuItemHelper to toolbar/menu_button
    - Inject MenuButtonState supplier to MenuButton MVC instead of
       the components calling UpdateMenuItemHelper directly

    Bug: 1127732
2021-08-18 10:57:01 -04:00
samartnik f512dd3e2a [Android] Removed Google services from main settings
Chromium change:
https://chromium.googlesource.com/chromium/src/+/333aadcb14d5fe2f9b4f62441b971324cf4d6e14

[Signin][Android] Remove the pre-MICE code in MainSyncSettings

This cl removes legacy tests and code paths in MainSyncSettings prior
to MOBILE_IDENTITY_CONSISTENCY rollout.

Bug: 1206701
2021-08-18 10:53:16 -04:00
samartnik 7ddb2c4fe4 [Android] Omnibox was modularized
Chromium change:
https://chromium.googlesource.com/chromium/src/+/385121b715b153153f7626baf728cbd588250ff7

Android: Modularize omnibox/

Moves the files in chrome/browser/omnibox and related resources to
a new modularized target under chrome/browser/ui/android/omnibox.

Bug: 1171512
2021-08-18 10:53:16 -04:00
samartnik fafc54defd [Android] SyncService related changes
Chromium change:
https://chromium.googlesource.com/chromium/src/+/21667acc2a3c5fe6738899fb494248c583bcc230

Rename ProfileSyncService to SyncServiceImpl in Android code

No behavior is changed. Do the following renamings:
- ProfileSyncService.java -> SyncServiceImpl.java
- profile_sync_service_android.h -> sync_service_android_bridge.h
- FakeProfileSyncService.java -> FakeSyncServiceImpl.java (and
  corresponding *WithFakeProfileSyncService test files)

Moreover
- Update the documentation of *sync_service_android_bridge.h

Bug: 1201272
2021-08-18 10:53:08 -04:00
samartnik e762e35637 [Android] Adjustments for FeedSurfaceCoordinator code changes
Chromium change:
https://chromium.googlesource.com/chromium/src/+/c84e15f86da8a6f00920d4dd03087cc88b8970f5

More feed launch reliability logging

* Log the "feed reloading" start event
* Log a catch-all launch end event when the stream is unbound: more specific feed launch end conditions (user navigated away, switched tabs/apps, etc.) will be added in another CL
* Use no-op logger in public builds or if reliability logging is disabled

Bug: 1195940
2021-08-18 10:53:08 -04:00
samartnik 43578e6747 [Android] Tab.getUrlString was removed
Chromium change:
https://chromium.googlesource.com/chromium/src/+/e69282129b23e48d40c953fa7d388e0ebf8c7a5a

[GURL] Remove references to Tab.getUrlString()

~50 left
Bug: 783819
2021-08-18 10:43:11 -04:00
samartnik d2a80c81b0 [Android] Adjusted java code to upstream changes 2021-08-18 10:43:01 -04:00
Anthony Tseng 8c47e4e293 lint fix 2021-08-17 16:44:47 -07:00
AlexeyBarabash c5656648af Removed BraveSyncReflectionUtils.java 2021-08-17 16:13:59 -07:00
Anthony Tseng bee6c98a61 Remove enable_brave_sync buildflag 2021-08-17 16:13:57 -07:00
Serg fde1124d9c Adjusts buy, send, swap UI on Android to make it similar as desktop 2021-08-11 12:48:29 -04:00
Serg 5ef05042ac Merge pull request #9689 from brave/token_registry_mojo
ErcTokenRegistry expose to mojo, for Android usage
2021-08-06 21:49:10 -04:00
Max c6bb9e7a4c Merge pull request #9625 from brave/maxk-gitattributes
Added .gitattbutes.
2021-08-06 16:17:36 -04:00
Deep Pandya ce1db6133a Accounts UI wallet android (#9641)
* Update asset details UI with account info

* Add missing imports

* Rename fragment to portfolio

* Add Fragement for accounts

* Add account UI

Add callback for account click, asset click and transaction click

* Fix verify phrases crash

* ADD accounr detail UI

* Add account detail UI with QR
2021-08-06 14:44:41 -04:00
Serg 4ea19ecc71 ErcTokenRegistry expose to mojo, for Android usage 2021-08-06 14:17:10 -04:00
samartnik c3d4d0020f [Android] Added toggle for Brave stats 2021-08-05 11:56:30 -04:00
mkarolin 4b0ae3c77e Formatting fixes. 2021-08-05 10:22:38 -04:00
mkarolin 01af140ac1 Normialized line endings after adding .gitattributes. 2021-08-05 10:22:04 -04:00
Serg 251ecadafc Converts Time to TimeDelta in asset price in mojo, adds Android handler for asset history dates 2021-08-04 13:30:56 -04:00
Serg d22f34d664 Creates only one mojo remote per Activity 2021-07-29 11:38:26 -04:00
Serg 4f64ca720d Converts all JNI calls for Android wallet into mojo calls 2021-07-28 16:25:44 -04:00
Deep Pandya 8a240faf2f Add buy-send-swap UI (#9502)
* Add buy-send-swap UI

* Add Strings and resources

* Fix search menu

Add padding for swap UI

* Update colors for dark mode

* Update swap UI

* Refactor resources and warnings
2021-07-28 10:37:52 -04:00
Deep Pandya d7a5ad3b97 Update colors for dark mode (#9509)
* Update Dark mode colors

* Remove logs
2021-07-26 19:05:46 -04:00
Serg 1719b9a9b5 Adds a vertical line with prices for Android crypto wallet asset chart 2021-07-26 15:26:20 -04:00
Brian R. Bondy 8b280912b1 Fix JS usage of getAssetPrice API 2021-07-23 11:12:47 -04:00
Serg 96d1de5faf Merge pull request #9494 from brave/android_wallet_fingerprint
Allows to create a wallet on Android without fingerprints biometric
2021-07-21 16:59:35 -04:00
Serg 203ebe8109 Allows to create a wallet on Android without fingerprints biometric 2021-07-21 14:07:35 -04:00
wchen342 ad9235b161 Update icons; Format fix 2021-07-21 21:06:40 +03:00
wchen342 b1800f8188 Add back ic_search override icons 2021-07-21 21:06:40 +03:00
wchen342 6c5a706e2f Fix graphics warnings 2021-07-21 21:06:39 +03:00
wchen342 cf69901734 Revert changes on placeholder strings 2021-07-21 21:04:59 +03:00
wchen342 903deeb09b Fix most warnings from xml/java/grd files. 2021-07-21 21:04:55 +03:00
samartnik e58b585ef7 [Android] Fixes for cosmetic filtering and ads blocking modes 2021-07-21 12:30:33 -04:00
Deep PandyaandBrian Clifton c6e1b8d075 Update DDG Se (#9458)
* Update DDG Se

* Fix broken Android tests

Co-authored-by: Brian Clifton <brian@clifton.me>
2021-07-16 12:50:14 -04:00
Deep Pandya 0a7a5bfe14 Show NTP page on onboarding close (#9457)
* Show NTP page on onboarding close
2021-07-16 12:25:16 -04:00
Deep Pandya b922c3d7e0 Crypto wallet flow (#9399)
* Resolve warnings

* Add native functions

* Update restore UI

Update onboarding flow

Update recovery phrase UI

* Add asset price native function

* Add asset price history native function

* Update UI to keep only crypto section

* Add asset detail page

Update graph with real asset data

* Remove unused resources
2021-07-14 13:24:16 -04:00
samartnik f3936a625b Merge pull request #9433 from brave/android_remove_network_predictions
[Android] Removed network predictions option
2021-07-14 13:08:52 -04:00
samartnik 4af869b350 [Android] Removed network predictions option 2021-07-14 11:35:49 -04:00
Pranjal Jumde 56555ad718 Fix #14629 - Add support for Gemini for rewards external wallets 2021-07-13 17:24:53 -05:00
Deep Pandya a288c4143e Fix warnings (#9338) 2021-07-12 08:47:14 -04:00