Commit Graph
1987 Commits
Author SHA1 Message Date
samartnik 98fd731f68 [Android] Fixed tint for brave shields 2022-03-18 20:04:13 -04:00
samartnik 8e31b653d8 [Android] Disabled dynamic colors
It causes styling issues with our colors.
2022-03-18 20:04:13 -04:00
samartnik 489a98b558 [Android] HomeButton updated to ListMenuButton
Chromium change:
https://github.com/chromium/chromium/commit/6545045e76e14c6b1fb7aa6c54ddbc01ee30c595

Update HomeButton to ListMenuButton
This CL updates the HomeButton to be a ListMenuButton rather than a
ChromeImageButton. This was done to add a pencil icon to the "Edit
homepage" button.

Bug: 1042314
2022-03-18 20:04:10 -04:00
samartnik ba2f8712ef [Android] Fixes for unit tests 2022-03-18 20:04:07 -04:00
samartnik 706ca48308 [Android] Fixes for new lint version
In chromium these warnings are filtered in 'chrome/android/expectations/lint-baseline.xml', but due to our patches line numbers there are changed thus these patches.

Chromium change:
https://github.com/chromium/chromium/commit/c4cd648328fbc18a409c7fdf1137024196e06b09

Roll cmdline-tools from Ez2NWws2S... to PGPmqJtSI...
This updates lint from version 7.0.0 to 7.1.0, so various baseline.xml
files needed updating.

This also updates the baseline format from version 5 to version 6.
Follow-up CLs can then update the baseline format after this CL lands.
This includes internal repos using lint baselines.

Cq-Include-Trybots: luci.chrome.try:android-internal-rel
Bug: 1293245
2022-03-18 20:04:07 -04:00
samartnik bc5bd48e26 [Android] Updated Android sync setting
Chromium change:
https://github.com/chromium/chromium/commit/e570e9fcc8636087a0ac7cd09b6f9cfb5b142c1d

Update Android sync dashboard text to match Desktop and ChromeOS
This string change brings Android in sync with the Desktop and ChromeOS
string (see IDS_SETTINGS_NEW_MANAGE_SYNCED_DATA_TITLE_UNIFIED_CONSENT).

Bug: 1295309
2022-03-18 20:04:05 -04:00
samartnik 70fa134ecb [Android] New c-tor signatures for java classes 2022-03-18 20:04:04 -04:00
samartnik f3c190a17c [Android] AndroidSyncSettings was removed
Chromium change:
https://github.com/chromium/chromium/commit/6b20a8bea7e759dad5741b7cffcb5d563be92c32

Remove shallow AndroidSyncSettings
No behavior is changed. The class doesn't contain any logic anymore
following crrev.com/c/2988181.
Just replace calls to it with the underlying SyncService calls.

Bug: 1107904
2022-03-18 20:03:54 -04:00
samartnik c477eab6ff [Android] New c-tor signatures for various classes 2022-03-18 20:03:53 -04:00
samartnik 380999da0d [Android] Data reduction setting was removed
Chromium change:
https://github.com/chromium/chromium/commit/b6b415a612d80465864c952bc3de4fbd33963fc6

Remove data saver UI
This removes all the Java code for the lite mode.

Change-Id: I4a459e354067b0c3a4acd853241c9de9359feaf0
Bug: 1285486
2022-03-18 20:03:53 -04:00
samartnik 8f71c5f198 [Android] Color changes for default_bg_color_dark relanded
Chromium change:
https://github.com/chromium/chromium/commit/36b698ced32d46de61554b4db1d9ca38143fcfc2

Reland "[GMNext] Migrate default_bg_color_dark_elev_N"
This is a reland of 391590f

The underlying issue has been fixed in https://crrev.com/c/3414069 and
this change is now safe to reland without any modifications.

Original change's description:
> [GMNext] Migrate default_bg_color_dark_elev_N
>
>
> [GMNext] Migrate default_bg_color_light_elev_N to dynamic colors
>
> Migrate default_bg_color_light_elev_N to dynamic colors.
>
> Only usage can be handled with the SurfaceColorDrawable.
>
> Will handle night mode version in followup CL migrating
> default_bg_color_dark_elev_N.
>
> Bug: 1270911
2022-03-18 20:03:52 -04:00
samartnik d3ed845556 [Android] ACTION_SYNC_SETTINGS was removed
Chromium change:
https://github.com/chromium/chromium/commit/d18700ce0dc7050e430e65ffdad1ade446fe190e

Remove SyncService::{Is,Set}SyncAllowedByPlatform()
No behavior is changed: the setter is no longer called, so the value
of the getter remains always true. Delete the APIs.
Since the "disallowed" state no longer happens, also delete the
corresponding:
- DISABLE_REASON_PLATFORM_OVERRIDE.
- Android UI exposing the error.
- Sync.ResetEngineReason metric bucket.

Bug: 1107904
2022-03-18 20:03:52 -04:00
samartnik 2795156a10 [Android] SplitCompatUtils moved into //base
Chromium change:
https://github.com/chromium/chromium/commit/2a774859aecae9ae788ef3a07e5294bf2d265e51

Move SplitCompatUtils into //base
This needs to be moved so it can be used by the autofill_assistant
component. The createChromeContext method was moved into
SplitChromeApplication.

A follow up will remove the old SplitCompatUtils class once all internal
references are removed.

Bug: b/183478921
2022-03-18 20:03:52 -04:00
wchen342 c5ef6102bf Merge pull request #12645 from brave/nw_swap_balance
[Android] update balances after token changes
2022-03-18 01:14:28 -04:00
wchen342 eccf73082a Merge pull request #12660 from brave/nw_auto_populate_button
[Android] Enable Add button immediately after filling in token fields
2022-03-18 01:14:06 -04:00
wchen342 998dcbd32c Update balances after token changes 2022-03-18 01:06:47 +02:00
wchen342 8188eeb82b Enable Add button immediately after filling in token fields 2022-03-18 00:51:39 +02:00
Deep e0d494083c Update text for user wallet 2022-03-16 17:00:05 -04:00
Deep Pandya 0265752b72 Merge pull request #12632 from brave/add_gemini_support_android
Add gemini support android
2022-03-16 15:49:34 -04:00
Pavneet Singh 58b502c5f1 Merge pull request #12584 from brave/21459-customize-nonce-in-transaction-panel
feat(wallet): customize nonce in transaction panel
2022-03-17 01:02:50 +05:30
Deep aca378909b Add gemini icons 2022-03-16 11:56:18 -04:00
Deep f53092b76f Add gemini redirect 2022-03-16 11:55:56 -04:00
Pavneet-Sing a9d7a0bf85 feat(wallet): customize nonce in transaction panel
- show approve dialog in AssetDetails for unapproved tx
- Refactor service methods to use BaseActivity
- Fix Approve dialog hover issue
2022-03-16 04:00:27 +05:30
Pavneet-Sing 4838a834ff fix reset tx preference lint issues 2022-03-16 02:19:06 +05:30
alexsafe dd08110d88 Merge pull request #12577 from brave/news-hides-rewards-banner
[Android] hides rewards banner when news is present
2022-03-15 13:32:42 -04:00
Jocelyn Liu d3e4645987 Add Solana impl-specific error codes and add ProviderErrorUnion
- ProviderErrorUnion is to be used for shared mojo API which might
  return a specific type of ProviderError, such as SolanaProviderError.
- Also remove ETH in the ID of some sharable strings.
2022-03-11 21:19:03 -08:00
wchen342 b642502f66 Merge pull request #12564 from brave/nw_pending_tx
[Android] Add pending transaction notification
2022-03-11 12:16:52 -05:00
wchen342 8311988ad5 Add pending transaction notification button 2022-03-11 10:09:44 +02:00
Alex C dfc35cb2c4 [Android] hides rewards banner when news is present 2022-03-10 20:11:22 -05:00
Nick von Pentz 6ecb9be30f Add chain ID parameter in JsonRpcService getBalance methods 2022-03-10 16:11:50 -05:00
alexsafe efb7f56d5b Merge pull request #12531 from brave/bravenews-android-uifixes
[Android] Brave news - ui fixes
2022-03-09 09:59:14 -05:00
Pavneet Singh b8111bf228 Merge pull request #12493 from brave/21457-option-to-reset-transactiion-and-nonce
feat(wallet): add reset transaction & nonce setting
2022-03-09 15:29:21 +05:30
Alex C 6c46455412 [Android] Brave news - fixes Load new content position should be higher on tablet view
[Android] Brave news - fixes BAT Ad icon has a red underline below the text

[Android] Brave news - fixes Cards before branded list cards are smaller in size

[Android] - Brave news fixes Load new content not scrolling in certain conditions

[Android] Brave news - fixes Ad color #20732

[Android] Brave news - ui fixes
2022-03-08 16:24:58 -05:00
Alex C b90313a875 [Android] Brave news - fixes opt-in card still showing after already opted-in issue 2022-03-07 11:37:48 -05:00
Pavneet-Sing 30b706e783 feat(wallet): add reset transaction & nonce setting 2022-03-07 16:58:44 +05:30
Max c34b355f11 Merge pull request #12416 from brave/maxk-issue-20564
Replace 'Monthly Contributions' language with 'Monthly Tips'
2022-03-05 19:06:49 -05:00
wchen342 1aeb47fe35 Merge pull request #12487 from brave/nw_network_default
[Android] Reset values after network change
2022-03-05 09:47:25 -05:00
wchen342 e2e445dd50 Reset values after network change 2022-03-05 15:54:33 +02:00
Alex C d99cafcb31 [Android] Brave news - disables default peeking card 2022-03-04 15:44:26 -05:00
samartnik dfd346e798 [Android] Fixed 'Open in new tab' on first time run 2022-03-03 09:16:46 -05:00
Anthony Tseng 5ee6cfaa34 Merge pull request #12461 from brave/multichain-network
Multichain network refactoring
2022-03-02 19:41:42 -08:00
wchen342 8c95cee235 Merge pull request #12446 from brave/nw_android_profile
Pass profile to native from Java on Android
2022-03-02 20:03:54 -05:00
wchen342 fcc0805541 Pass profile to native from Java on Android 2022-03-03 02:09:58 +02:00
Anthony Tseng af92ac371a Add known Solana networks and GetAllNetworks for CoinType 2022-03-02 15:42:21 -08:00
Anthony Tseng 8b177fbe9b Apply changes to Android 2022-03-02 15:42:21 -08:00
Anthony Tseng 21f004755a Replace EthereumChain with general NetworkInfo with coin specific data
NetworkInfo is not copyable after adding union data, so we have to get
rid of EthereumChainRequest
2022-03-02 15:42:20 -08:00
mkarolin fb108dc8ff Replace 'Monthly Contributions' language with 'Monthly Tips'
Fixes brave/brave-browser#20564
2022-03-02 13:06:27 -05:00
Pavneet Singh 53888bef05 Merge pull request #12396 from brave/20471-replace-network-selector
20471 replace network selector
2022-03-02 22:47:43 +05:30
samartnik c2f85f1784 [Android] Fixed button size for adding sync devices 2022-03-02 09:20:34 -05:00
samartnik 8b5f831c3f Merge pull request #12455 from brave/android_tablet_context_menu_fix
[Android] Fixed context menu for tablets
2022-03-01 21:18:54 -05:00