Commit Graph
1832 Commits
Author SHA1 Message Date
Pavneet-Sing dcd049ec44 chore(20463): Update swap dex aggregator text
- Update swap link style and show info icon
- fix override build warning
2022-01-28 08:29:41 +05:30
samartnik de275952c3 Merge pull request #12034 from brave/android_ntp_google_fix
[Android] Fixed NTP with Google as dse
2022-01-27 18:27:08 -05:00
samartnik 35d8af6e4c [Android] Fixed NTP with Google as dse 2022-01-27 17:15:46 -05:00
Cepera 6e56cba4f5 Revert "Do not call eth_chainId for other than ETH networks (#11998)" (#12025)
This reverts commit b8edc4d5ec.
2022-01-27 23:11:22 +03:00
samartnik 5676536d92 Merge pull request #12004 from brave/android_crash_on_tip
[Android] Fixed crash on tipping
2022-01-26 14:07:59 -05:00
samartnik e39cc91952 [Android] Fixed crash on tipping 2022-01-26 12:16:39 -05:00
Cepera b8edc4d5ec Do not call eth_chainId for other than ETH networks (#11998)
* Enabled import for filecoin accounts

* Do not validate non-ETH networks
2022-01-26 20:08:25 +03:00
Alex C ffbab4a45d [Android] Brave news - recycler optimizations
[Android] Brave news - null checks
2022-01-26 11:12:29 -05:00
Alex C cb7149c78b [Android] Brave news - fixes stretched background on NTP
[Android] Brave news - fixes recyclerView issues

[Android] Brave news - attempt to make the widgets easier to access with news

[Android] Brave news - refactor recycler position in rel to image credit

lint format
2022-01-25 18:31:22 +00:00
Pavneet-Sing 4c537f7f35 fix(wallet): retain cursor position when showing recovery phrase 2022-01-25 21:13:26 +05:30
samartnik b75f54472c [Android] Fix default_control_color for wallet network preferences
Fixes https://github.com/brave/brave-browser/issues/20648
2022-01-24 15:39:27 -05:00
samartnik 8b285f9d85 [Android] Explicitly specified CheckBox type in resources
Otherwise it falls back to MaterialCheckBox and causes UI issues

Fixes https://github.com/brave/brave-browser/issues/20647
2022-01-24 15:39:26 -05:00
samartnik e243fdb750 [Android] Changes for default_control_color_active
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3237868

[GMNext] Make active and normal control colors dynamic

This CL converts default_control_color_active and
default_control_color_normal into macros to migrate them to dynamic
colors and updates their usages.

Bug: 1270919
2022-01-24 15:39:19 -05:00
mkarolin ee544f9a41 [Android] TabModel#setIndex() signature changed.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/9fbb3bbea87c914a3fbc4f78bbc2771295d0592b

commit 9fbb3bbea87c914a3fbc4f78bbc2771295d0592b
Author: Xi Han <hanxi@google.com>
Date:   Wed Jan 5 16:39:53 2022 +0000

    Allow TabModel#setIndex() to skip loading the Tab.

    This is the precursor CL for: https://crrev.com/c/3343249.

    We add a flag in TabModel#setIndex() to allow set the index of the
    TabModel without showing the Tab. Note: There are mostly mechanical
    changes in this CL, no behavior changes at all.

    Bug: 1229187
2022-01-24 15:39:15 -05:00
samartnik f3525c622a [Android] Changes for WebContentsDarkModeController
Chromium change:
https://github.com/chromium/chromium/commit/1443d5c5c991380789b3681d017e06245b098e35

[AutoDark] Clean up WebContentsDarkModeController
Remove the shared preference for auto dark usage in Android, since force
dark settings is now provided in TabWebContentsDelegateAndroid.

For this reason, we can refactor the class by:
* Remove ApplicationStatusListener
* Remove NightModeStateProvider.Observer

Bug: 1249345
2022-01-24 15:38:46 -05:00
samartnik b9a839a80b [Android] New Preload Pages prefs
Chromium change:
https://github.com/chromium/chromium/commit/e74bbb61bf7cc3c23f690fc0a93f839c8ce38f35

The new UI adds a new option to let users opt-in to extended preloading.

Also migrate where preloading prefs are controlled from
PrivacyPreferencesManager (in privacy/settings) to
chrome/browser/prefetch, which is where the UI code is also now located
(along with most features using this setting, like the prefetch proxy,
no state prefetch, omnibox search prefetching).

The migrated pref enum names have been clarified to indicate that
wifi-only preloading is deprecated. This has been unsupported for a while now,
but it was not clear from most of the call sites. Obsolete comments have
also been removed.

Bug: 1263586
2022-01-24 15:38:45 -05:00
samartnik 9657de8600 [Android] New c-tor signature for FeedSurfaceCoordinator
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3246335

feed-modularization: Clean up after FeedHooks migration

Simplify some things now that FeedHooks can be used
to create the ProcessScope.

I wanted to get rid of the initialization at startup
in FeedSurfaceTracker / FeedServiceBridge because timing
of the call can be error prone. The Feed component currently
needs a ProcessScope when it prefetches images, and this
shouldn't be tied to initialization of any UI. To do that,
I used Java reflection.

Bug: 1254437, 1274816
2022-01-24 15:38:45 -05:00
samartnik 95c9234350 [Android] Renamed mojom interfaces for JsonRpcService
Now there is underscore added while autogeneration.
2022-01-24 15:38:44 -05:00
samartnik 932804b773 [Android] Fixes lint errors
Fixes these errors:
../../brave/android/java/org/chromium/chrome/browser/brave_news/CardBuilderFeedCard.java:274: Error: Should pass resolved color instead of resource id here: getResources().getColor(R.color.brave_theme_color) [ResourceAsColor]
                                adLogo.setTextColor(R.color.brave_theme_color);
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~
../../brave/android/java/org/chromium/chrome/browser/brave_news/CardBuilderFeedCard.java:279: Error: Should pass resolved color instead of resource id here: getResources().getColor(R.color.brave_theme_color) [ResourceAsColor]
                                gd.setStroke(1, R.color.brave_theme_color);
2022-01-24 15:38:34 -05:00
samartnik 56193fe255 [Android] Adjustments to UI changes in the upstream
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3283625

Clean up legacy non-ThemeRefactorAndroid code now that the feature has
launched.

Bug: 1251194
2022-01-24 15:34:05 -05:00
samartnik 8c35e65757 [Android] Make default_icon_color dynamic
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3276657

[GMNext] Make default_icon_color dynamic

Bug: 1216642
2022-01-24 15:33:55 -05:00
samartnik 12f3b8df0f [Android] New c-tor signature for TabSwitcherModeTTCoordinatorPhone
Chromium change:
https://github.com/chromium/chromium/commit/fee97f92a2beb2d82ccced2a90a8f5931b976c2f

[Start] Clean up unnecessary codes in StartSurfaceToolbar*.
1. LayoutStateProvider and LayoutStateObserver logic is removed in
StartSurfaceToolbar* because StartSurfaceState#onStateChanged should
already cover all layout state changes.
Lazy inflation in StartSurfaceToolbarCoordinator.java is moved to
onStartSurfaceStateChanged() accordingly.
Clean up StartSurfaceMediatorUnitTest.java accordingly.

2. hasIncognitoTabs() in StartSurfaceToolbarMediator.java is removed
because the previous CL has added an incognito tab model observer which
could observe whether there is incognito tab directly.

3. Stop passing isStartSurfaceEnabled into
TabSwitcherModeTTCoordinatorPhone.java because it's always false.

Change-Id: I024f77b4d7ece51ddd53fc1c0b2bc7cedcfa3c2f
2022-01-24 15:33:47 -05:00
Pavneet Singh 46b70d848f Merge pull request #11951 from brave/19969-show-transaction-approval-popup
fix(wallet): show transaction dialog for approval/reject
2022-01-22 18:31:06 +05:30
Cepera f337a47cf8 Add chain validation to wallet_addEthereumChain api call (#11930) 2022-01-22 11:26:36 +03:00
Pavneet-Sing cb3d5d0909 fix(wallet): show transaction dialog for approval/reject
- In AssetDetailsActivity and AccountDetailsActivity
- Show live transaction status change in list
- Refactor Utils
2022-01-22 04:04:40 +05:30
Deep 005fa87ba8 Reformat code 2022-01-21 12:22:19 -05:00
Deep b059fc3365 Add icon for drop down 2022-01-21 12:21:19 -05:00
Deep 2925c7a27a Resolve contribution 2022-01-21 12:21:19 -05:00
Deep daee522582 Update monthly contribution UI
Update banner code
2022-01-21 12:21:19 -05:00
samartnik 730cb1954b Merge pull request #11939 from brave/android_tab_groups_bar_swipe
[Android] Added ability to scroll Tab groups bar icons on swipe
2022-01-21 10:41:39 -05:00
samartnik 854ce3cdc7 [Android] Added ability to scroll Tab groups bar icons on swipe 2022-01-20 16:37:04 -05:00
alexsafe 4268a8a3ba Merge pull request #11877 from brave/bravenews-android-ntpfixes
[Android] Brave news - bugs fixes
2022-01-20 13:06:06 -05:00
wchen342 2d3338923d Merge pull request #11925 from brave/nw_backup_fix
[Android] Fix wallet backup starts from wrong page
2022-01-20 10:44:17 -05:00
Emerick Rogul da01611050 Merge pull request #11901 from brave/rewards-android-reduce-site-icon-fetch-timeout
Reduce fetch timeout for site icon on Android
2022-01-20 09:43:58 -05:00
Emerick Rogul 90c000a30e Merge pull request #11898 from brave/rewards-android-remove-rounded-corner-panel-background
Remove background bleed-through in Rewards panel on Android
2022-01-20 09:43:34 -05:00
wchen342 15db976341 Reset index when entering backup sequence 2022-01-20 16:04:46 +02:00
Emerick Rogul 7517fba6e9 Remove background bleed-through in Rewards panel on Android 2022-01-20 07:06:46 -05:00
Alex C 29d2f4fb2a [Android] Brave news - bugs fixes 2022-01-19 22:21:59 -05:00
Alex C 74b5651e09 [Android] Brave news - bugs fixes 2022-01-19 21:50:16 -05:00
Emerick Rogul fa50f286c9 Reduce fetch timeout for site icon on Android 2022-01-19 15:38:58 -05:00
wchen342 27b3a20738 Extract wallet common logic to a base activity class 2022-01-17 21:05:55 +02:00
Cepera b8b5932008 Add multiple keyrings support and Filecoin balances requests (#11687)
* Improved multi-keyrings management and added backed for filecoin requests

* Rename BraveCoins -> CoinType

* Change coin indexes to meet BIP-0044

* Change CoinType.FILECOIN -> CoinType.FIL
2022-01-14 11:16:23 +03:00
Emerick Rogul 7b377b6db9 Merge pull request #11810 from brave/rewards-show-rewards-button
Migrate kHideButton preference to kShowButton preference
2022-01-13 10:48:45 -05:00
Pavneet Singh 75a5286e90 Merge pull request #11833 from brave/18459-add-restore-legacy-wallet-option
feat(wallet): add restore legacy wallet option
2022-01-13 05:56:23 +05:30
Brian R. Bondy 36eff395f5 Merge pull request #11791 from brave/blockchain-registry-multi
Handle multiple chains in BlockchainRegistry
2022-01-12 19:25:38 -05:00
Pavneet-Sing a078b7a04c feat(wallet): add restore legacy wallet option
- add title for new password
2022-01-13 04:17:57 +05:30
Serg 4201ec5499 Fixes after code review 2022-01-12 13:43:45 -05:00
Serg 3fb94be5f2 Fixes gas fees to be dependant on a chain main currency instead of ETH on Android 2022-01-12 09:29:37 -05:00
Brian R. Bondy a75ce6eb0d Add chain_id param to blockchainRegistry functions 2022-01-12 08:32:28 -05:00
Serg adb5c843f2 Adds a custom network to networks drop down, hides buy/swap for custom networks on Android 2022-01-11 16:28:14 -05:00