Commit Graph
3917 Commits
Author SHA1 Message Date
Deep Pandya 00a28ca270 Add exclude LAN traffic config for VPN (#23135) 2024-05-01 14:04:25 -04:00
Deep Pandya eae9f70b9c Vpn always on & kill switch android (#23293)
* Add UI for always on feature

Add roboto flex font

* Add always on tutorial image resources with tab selectors

* Update UI chanegs for always on tutorial

* Add license headers for resources

Update text change with license header
2024-05-01 11:55:05 -04:00
Deep Pandya 573395467a Resolve bottomsheet height for rate brave (#23299)
* Resolve bottomsheet height for rate brave

* Resolve presubmit error

* Remove commented code changes
2024-05-01 11:53:06 -04:00
deeppandya 3da3e68a73 Update in app update snackbar text 2024-04-30 01:27:15 -04:00
deeppandya ee1b85acde Add in app update dialog timing 2024-04-30 01:27:12 -04:00
deeppandya 86d6db6e3a Initial changes for in app update 2024-04-30 01:27:09 -04:00
Serg ed7059eff4 Merge pull request #23330 from brave/android_autofill_crash
Wraps autofill main method to prevent a crash on Android
2024-04-29 18:50:38 -04:00
Serg 789dd0766a Wraps autofill main method to prevent a crash on Android 2024-04-29 17:42:27 -04:00
Deep Pandya 475fc27b99 Resolve bottomsheet height for landscape/tablet mode for VPN disconnect (#23296) 2024-04-29 15:01:48 -04:00
samartnik 9952b26d8c Merge pull request #23305 from brave/android_leo_menu_anchor_fix
[Android] Fix for bottom toolbar visibility initial state
2024-04-26 17:10:12 -04:00
Artem Samoilenko b3dd8b4bcd [Android] Fix for bottom toolbar visibility initial state 2024-04-26 15:32:05 -04:00
Deep Pandya 071fad875c Remove shorts for youtube (#23130) 2024-04-26 11:26:13 -04:00
samartnik afacafb3c0 Merge pull request #23288 from brave/android_cold_private_tab_opening_fix
[Android] Fixes for search engine and UI issues on cold opening of th…
2024-04-26 06:21:47 -04:00
samartnik 02561fe2fa Merge pull request #23271 from brave/android_tab_swipe_animation_fix
[Android] Fix for tab swipe animation
2024-04-26 06:21:01 -04:00
Tapan Modh b4cb4e03ff Merge pull request #22862 from brave/toggle_window_android
[Android] Toggle window
2024-04-26 10:22:47 +05:30
Artem Samoilenko c5ebd29cf9 Presubmit fixes 2024-04-25 16:53:57 -04:00
Artem Samoilenko c4f349788f [Android] Fixes for search engine and UI issues on cold opening of the Private tab 2024-04-25 15:29:20 -04:00
tapanmodh 2009b5d48e toggle multiple window support android 2024-04-25 11:42:58 +05:30
Artem Samoilenko 78dfdad3ef [Android] Fix for tab swipe animation 2024-04-24 15:05:05 -04:00
Darnell Andries 94d8e5db23 Merge pull request #22997 from brave/news-time-session-p3a
Record News session start event after inactivity
2024-04-22 13:53:38 -07:00
Simone Arpe 6925f86efc (Wallet) Refactor fragment creation for onboarding adapter (#23127)
* Refactor fragments creation for onboarding adapter
* Fix illegal state exception when tapping on backup now button
* Rename `CryptoWalletOnboardingPagerAdapter` to `WalletOnboardingPagerAdapter`
* Reset terms of use checkbox states
2024-04-22 14:09:40 +02:00
Serg cfecbee895 Removes unneeded check for our pref keys 2024-04-17 13:11:59 -04:00
bf5fca0438 Upgrade from Chromium 124.0.6367.29 to Chromium 124.0.6367.60. (#23088)
* Upgrade from Chromium 124.0.6367.29 to Chromium 124.0.6367.60

* Update pins list timestamp

* [Android] Changes for logo polish for tablet

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/4a6ecfb34aa32438b180284a909dcd2db639ce8e

[LogoPolish] Implement logo polish for tablet.

This CL modifies the logo height on tablet when Logo Polish is
activated. The height of the logo is decided by the selected variation.
When using split screen mode on a tablet, the logo's height will remain
at the small setting.

The screenshots are included in the following link:
https://docs.google.com/document/d/16z7y1lXiSJ0sCZ0-UzrXdBC8H2idDrVdVarJ4DIEuho/edit?usp=sharing

Bug: 328769923, 330745894

* Disables crashing upstream browser test.

---------

Co-authored-by: brave-builds <brave-builds+devops@brave.com>
Co-authored-by: Artem Samoilenko <artem@brave.com>
2024-04-16 17:20:39 -04:00
taherandSerg 8191bd2d5b aichat: update header ui (#22759)
* Handles Leo chat window X button on Android
---------

Co-authored-by: Serg <serg.zhukovsky@gmail.com>
2024-04-12 09:59:25 -07:00
Simone Arpe db713ed8c6 (Wallet) Add small delay if required (#23025)
If the Wallet creation is faster than 700 milliseconds, add a small delay that prevents
calling the page transition too fast.
2024-04-12 11:11:20 +02:00
Simone Arpe 845f290731 (Wallet) Improve checkbox padding on terms of use screen (#23026)
Improve checkbox padding
2024-04-11 15:24:56 +02:00
sangwoo.ko 519d0f2691 notify that item is going to be cached 2024-04-11 13:28:40 +09:00
Simone Arpe 7be8698083 (Wallet) Implement Bitcoin support and network selection (#22962)
* Enable Bitcoin by default on Android
* Introduce supported coin types for account selector
* Return Bitcoin logo for Bitcoin mainnet and testnet
* Remove unused methods and simplify CryptoModel implementation
* Implement Wallet creation method that includes selected networks
* Refactor network model and remove unused networks
* Perform refactoring to onboarding fragments and their model
* Include new network selection fragment
* Return keyring IDs for Bitcoin mainnet and testnet
* Add Neon logo
* Include Bitcoin among supported networks
* Simplify layout to avoid view pager glitches
* Remove plus button from network selector
* Implement new auto span grid layout manager
* Implement new adapter that shows available networks
2024-04-10 12:31:04 +02:00
Darnell Andries 82213d2033 Record News session start event if existing session is used after an hour of inactivity 2024-04-09 20:47:54 -07:00
Deep Pandya 3446eb9531 Show TOS notification badge for rewards (#22977) 2024-04-09 13:16:20 -04:00
Artem Samoilenko da8a21bb4c [Android] Added missing import 2024-04-08 23:09:45 -04:00
Artem Samoilenko 1ddca08eda [Android] Adjustments for the Read Aloud feature
Chromium changes:
https://source.chromium.org/chromium/chromium/src/+/bfcf11b488c2d0156367fadbe184c18496bc69f1

M124: Read Aloud: fix browser controls position issues after theme change

If the theme is changed during playback, the player UI is recreated
while the main activity isn't visible the settings activity is on
screen instead.
 * The top toolbar control container height is 0, so when called back
   with browser controls offset changes, getToolbarExtraYOffset()
   gives the wrong result, placing the toolbar too low.
 * The bottom controls need to be translated to match the bottom
   controls min height whenever the real view becomes visible, not
   just at the end of min height animations.
 * Plumb the Read Aloud mini player show status over to
   BottomControlsMediator to help with positioning the bottom controls
   after restore when the usual height change animation callback won't
   be called.

(cherry picked from commit dc98643c9f66679b69636a5138e345338de3b758)

Bug: 329823963
2024-04-08 23:09:44 -04:00
Artem Samoilenko 7fb1466f9c [Android] Add Sync toggle for WebAPKs
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/13d31e3391d690184c1a35f3a52e05bacf824042

Add Sync toggle for WebAPKs

Bug: 41494049
2024-04-08 23:09:41 -04:00
Max Karolinskiy bc94bf3521 Java formatting fixes. 2024-04-08 23:09:41 -04:00
Artem Samoilenko 533c639dcb [Android] Introduce common SearchActivity call-up mechanism
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/4ee04e1e571efd8ee8ec0a29cb35cb1da9835bb8

4ee04e1
Compare
Browse

Copy full hash
Introduce common SearchActivity call-up mechanism.

This change introduces a SearchActivityClient, a standalone interface
that permits components to call up SearchActivity.

The component allows us to provide a simple scalable solution for all
SearchActivity use cases. The intention is to migrate multiple
different invocation mechanisms to a single, easily expandable
mechanism that can encompass them all.

Bug: 327023983
2024-04-08 23:09:38 -04:00
Artem Samoilenko ab7a3cb088 [Android] Update AutofillAddress/AddressEditor to use Profile-aware PersonalDataManager
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/1dd960ea503c6655dcb8f07f4dac0dd78037a8f9

Update AutofillAddress/AddressEditor to use Profile-aware PersonalDataManager.

Bug: 40689806
2024-04-08 23:09:38 -04:00
Artem Samoilenko b999ccb69e [Android] Update Read Aloud magic toolbar button when page is translated
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/ee6035ab3770ea4e92fead9dd0622cfab6d75388

Update Read Aloud magic toolbar button when page is translated

The page's readability may have changed if it was translated, so the
button should check again and possibly show or hide itself.

Underlying changes:
- Add a TranslationObserver to the selected tab as needed
- Change how ReadAloudController notifies outside features of readability events

This is a reland of https://chromium-review.googlesource.com/c/chromium/src/+/5319377 with fixes: the TranslationObserver can't be registered in onPageLoadStarted() because it runs for a temporary WebContents during tab restore and there's no chance to unregister.

Bug: 326287049
2024-04-08 23:09:37 -04:00
Artem Samoilenko 9333d0c751 [Android] ToolbarColorObserverManager now observers overview color
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/7ee98c9e696f4f41719c6fad8f3011b9d9c7b4fd

ToolbarColorObserverManager now observers overview color.

Bug: b:327254108
2024-04-08 23:09:34 -04:00
Artem Samoilenko 31d8e4a559 Revert: [Android] New method for ThemeColorObserver
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/367b1c908323ca11e1380dbded7d96b840a582bf

Revert "[SurfacePolish] Fix bug about toolbar flips to white when navigating"

This reverts commit 2c24369515ffb61dfca8e5ae252240e41b5571e4.

Reason for revert: Toolbar color got wrong when navigate to native pages and google webpages.

Original change's description:
> [SurfacePolish] Fix bug about toolbar flips to white when navigating
> from NTP to webpage
>
> When navigating from the NTP to a webpage, the toolbar color initially
> changes to the default toolbar color during the loading phase. It will
> change to the browser tab's color or stay unchanged after the loading
> phase. The loading process occurs directly on the NTP. However, with the
> Start Surface Polish enabled, the NTP's toolbar has a different color
> than the default toolbar, and this results in a flip of white when
> navigating from NTP to webpage, as shown in the
> image:
> https://drive.google.com/file/d/1ywogmzelW1OQwGdPCvrd0EndFkAbvCoM/
> view?usp=sharing&resourcekey=0-XV6pRmumU3L4vy36HRSJ4w.
> This CL aims to fix this problem.
>
> When navigating from the NTP to a webpage, the ToolbarPhone#mVisualState
> will immediately turn from VisualState.NEW_TAB_NORMAL or
> VisualState.NEW_TAB_SEARCH_ENGINE_NO_LOGO to VisualState.NORMAL called
> by function ToolbarPhone#onTabOrModelChanged. This is the starting point
> of the loading phase.
>
> The ending point of the loading phase is the time we know if we have a
> website theme color. The time we start to know whether the website has
> its theme color is the time point ToolbarPhone#onPrimaryColorChanged()
> gets called. Since this function won't be called when the website does
> not have a specific theme color, I added a function
> ToolbarPhone#onPrimaryColorGotUpdateNotified() instead. The newly added
> function will be called at the same time if
> ToolbarPhone#onPrimaryColorChanged() gets called. And the ending point
> is marked inside this function.
>
> After this CL, the navigation process will look like
> this:
> https://drive.google.com/file/d/1FchVCPWj3DnLaMoZ1Z5Ra_7Z6SIavRSV/
> view?usp=sharing&resourcekey=0-tT-y6F12OihXzxjeTnRaIw
>
> Bug: 323888159
> Change-Id: I0e790c2c140a118b8863194f78932168067861cd
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5272687
> Reviewed-by: Theresa Sullivan <twellington@chromium.org>
> Commit-Queue: Xinyi Ji <xinyiji@chromium.org>
> Reviewed-by: Sky Malice <skym@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1266588}

Bug: 323888159
2024-04-08 23:09:29 -04:00
Artem Samoilenko a44053be05 Reapply "Adjust Bottom Controls Toolbar height"
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/10145a59645cfee50488408fc668bec110daa3b4

Reapply "[E2E] Adjust Bottom Controls Toolbar height"

This reverts commit 8caccdd5507b623e0855a97d8cf08b9dbe350413.

Updates the BottomControls to use an appropriate Bar height when drawing ToEdge.

Bug: 41483234
2024-04-08 23:09:28 -04:00
Artem Samoilenko 0a098b001f [Android] Fix getTabGroupCount for tab groups with size 1
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/57a7761b2055997dccd9b566e1c42226734a1dbe

[Tab Group] Fix getTabGroupCount for tab groups with size 1

TabGroupModelFilter wasn't correctly tracking tab groups with size 1.

Increment when:
* Creating a single tab group.
* Adding a single tab that is in a tab group.

Decrement when:
* Closing the last tab in a group rather than when size becomes 1.
* Removing the last tab from a tab group with size 1.

Modify logic when adding a tab to the tab model as part of a group
so that the group is created later and we can properly signal if a
new group was created or not.

Bug: 41496693
2024-04-08 23:09:27 -04:00
Artem Samoilenko 59bfdd839e [Android] Revert "Adjust Bottom Controls Toolbar height"
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/8caccdd5507b623e0855a97d8cf08b9dbe350413

Revert "[E2E] Adjust Bottom Controls Toolbar height"

This reverts commit 868ff7f680a9e90147d4bca69b086a268f128cf8.

Reason for revert: See bug 327635899

Original change's description:
> [E2E] Adjust Bottom Controls Toolbar height
>
> Updates the BottomControls to use an appropriate Bar height when drawing ToEdge.
>
> Swiping on the Top Toolbar to switch tabs looks terrible, but I don't think hardly any users do that. Though we have bugs on that. Maybe we can add tests when we add that fix.
>
> BUG=41483234
>
> Change-Id: I4cbba784a2f5e3ea00cd619656d2768cb621f7df
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5276443
> Reviewed-by: Theresa Sullivan <twellington@chromium.org>
> Commit-Queue: Donn Denman <donnd@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1266214}

Bug: 41483234, 327635899
2024-04-08 23:09:27 -04:00
Artem Samoilenko 283c1dac8c [Android] Clean up refactor code in LayoutManager
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/3e641749e308f2278e68973da6f18523fc118a28

[StartRefactor] Clean up refactor code in LayoutManager.

Remove overviewLayout in LayoutManagerChrome and its tests.

Bug: 40221888
2024-04-08 23:09:27 -04:00
Artem Samoilenko b19e38d135 [Android] New method for ThemeColorObserver
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/2c24369515ffb61dfca8e5ae252240e41b5571e4

[SurfacePolish] Fix bug about toolbar flips to white when navigating
from NTP to webpage

When navigating from the NTP to a webpage, the toolbar color initially
changes to the default toolbar color during the loading phase. It will
change to the browser tab's color or stay unchanged after the loading
phase. The loading process occurs directly on the NTP. However, with the
Start Surface Polish enabled, the NTP's toolbar has a different color
than the default toolbar, and this results in a flip of white when
navigating from NTP to webpage, as shown in the
image:
https://drive.google.com/file/d/1ywogmzelW1OQwGdPCvrd0EndFkAbvCoM/
view?usp=sharing&resourcekey=0-XV6pRmumU3L4vy36HRSJ4w.
This CL aims to fix this problem.

When navigating from the NTP to a webpage, the ToolbarPhone#mVisualState
will immediately turn from VisualState.NEW_TAB_NORMAL or
VisualState.NEW_TAB_SEARCH_ENGINE_NO_LOGO to VisualState.NORMAL called
by function ToolbarPhone#onTabOrModelChanged. This is the starting point
of the loading phase.

The ending point of the loading phase is the time we know if we have a
website theme color. The time we start to know whether the website has
its theme color is the time point ToolbarPhone#onPrimaryColorChanged()
gets called. Since this function won't be called when the website does
not have a specific theme color, I added a function
ToolbarPhone#onPrimaryColorGotUpdateNotified() instead. The newly added
function will be called at the same time if
ToolbarPhone#onPrimaryColorChanged() gets called. And the ending point
is marked inside this function.

After this CL, the navigation process will look like
this:
https://drive.google.com/file/d/1FchVCPWj3DnLaMoZ1Z5Ra_7Z6SIavRSV/
view?usp=sharing&resourcekey=0-tT-y6F12OihXzxjeTnRaIw

Bug: 323888159
2024-04-08 23:09:23 -04:00
Artem Samoilenko ac02edbf6b [Android] Adjust Bottom Controls Toolbar height
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/868ff7f680a9e90147d4bca69b086a268f128cf8

[E2E] Adjust Bottom Controls Toolbar height

Updates the BottomControls to use an appropriate Bar height when drawing ToEdge.

Swiping on the Top Toolbar to switch tabs looks terrible, but I don't think hardly any users do that. Though we have bugs on that. Maybe we can add tests when we add that fix.

BUG=41483234

Change-Id: I4cbba784a2f5e3ea00cd619656d2768cb621f7df
2024-04-08 23:09:20 -04:00
Artem Samoilenko 77b1f2dd05 [Android] Remove deprecated getLastUsedRegularProfile from Profile
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/913e0498eac18b4cd078eb402e04dbe985ac18e0

Remove deprecated getLastUsedRegularProfile from Profile.java

Bug: 40254448
2024-04-08 23:09:20 -04:00
Artem Samoilenko 223871d66c [Android] OpenHistoryClustersDelegate was removed
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/c26d1a73c2ac760eec43e2e1707eb20d1277caff

[Journeys] Clean up clank journeys part 2

This change removes journeys code from the omnibox

Bug: 324864434
2024-04-08 23:09:19 -04:00
Artem Samoilenko 000869c9c6 [Android] Move AccessibilitySettings to //chrome
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/569c01f6e22852817a35e507bf73739e6f4649c4

[Accessibility Settings] Move AccessibilitySettings to embedder

This continues the work of removing complexity from the accessibility
settings flow. In this CL we move AccessibilitySettings and the related
TextScalePreference files to the //chrome/ package.

AX-Relnotes: N/A
Bug: 326608838
2024-04-08 23:09:19 -04:00
mkarolin 3f54a899a3 Restore kPermissionStorageAccessAPI flag functionality. 2024-04-08 23:09:19 -04:00
Artem Samoilenko 384974a50c [Android] Minor code adjustments to the C124 upstream changes 2024-04-08 17:33:59 -04:00