Commit Graph
204 Commits
Author SHA1 Message Date
Alex C a96db76e69 [Android] Fixes unresponsive close button from Site Settings options 2021-03-26 18:16:22 -04:00
samartnik 45fedd4e16 [Android] Reconciles Tab Group feature with bottom toolbar 2021-03-11 16:26:33 -05:00
samartnik 7ca49a75a4 [Android] Changes for disabling safe browsing extended reporting 2021-03-10 10:14:31 -05:00
Deep 9e6a7b7a78 Remove safe browsing help option 2021-03-09 01:07:48 -05:00
samartnik 010da2f267 [Android] Fixed menu icons for overview mode 2021-02-18 21:19:57 -05:00
samartnik 49e7fce600 [Android] Removed check passwords preference 2021-02-17 10:43:13 -05:00
samartnik ff468b64a6 [Android] getMaxRowsForMostVisitedTiles was moved
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/00bfce0c7635650f36baa1b335aa17c72cde1e70

Fix a bug Chrome is showing 2 rows of most visited tiles when query tiles are enabled

On small screen device, only 1 row of most visited tile should show when
query tiles are enabled.
However, TileSection hard coded the number of rows to 2. So even though
Chrome reduced most visited tiles to 4, it could still end up showing in
2 rows if the screen can only accommodate 3 tiles in a row.

BUG=1166388

(cherry picked from commit e97d0ce51b15cdb72da9a0ae67d9ceac1d08f646)
2021-02-04 23:52:52 -05:00
mkarolin d3f9f6b9be GN formatting fixes. 2021-02-04 23:52:46 -05:00
samartnik 115655ba64 [Android] AppMenuIconRowFooter was removed
Chromium change:
https://chromium.googlesource.com/chromium/src/+/bff28411ade9a9a07269c60b5d28a4cfc5ca0382

Delete unused AppMenuIconRowFooter

Left-over from bottom toolbar experiments.
2021-02-04 23:52:43 -05:00
samartnik 3476ac29ba [Android] Fixes for java warnings II 2021-02-04 23:52:42 -05:00
samartnik ca2dccb837 [Android] BottomControls were modularized
Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/2336b6557478c544a81650258aab4b0e7af49c78

commit 2336b6557478c544a81650258aab4b0e7af49c78
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date:   Mon Jan 11 01:13:17 2021 +0000

Toolbar: Move BottomControls to modularized target

This CL moves the classes for BottomControls MVC component plus
its layout xml to chrome/browser/ui/android/toolbar/.

Following dependencies on chrome_java were removed:

- ShareDelegate - was not in use.
- TabGroupUi - split to BottomControlsContentDelegate and extend
               from it.

Bug: 1127732
2021-02-04 23:52:41 -05:00
Deep 231bc92aa5 Add tooltip UI
Add modal UI
2021-02-04 01:28:50 -05:00
Deep 78dae0713c Add set default browser modal
Update behaviour for p3a modal
2021-01-29 13:26:32 -05:00
Deep 64e79f44cb Add generic tooltip UI
Update existing shields tooltip
2021-01-27 10:38:03 -05:00
AlexeyBarabash d6c29cf1a5 Informer for the case when Android system sync switch is toggled off 2021-01-22 21:54:06 +02:00
Terry Mancey 0de7d31a42 Merge pull request #7516 from brave/issues/13363
Disable custom ad notifications in release and beta builds
2021-01-12 15:27:04 +00:00
Deep f052c81920 Remove BraveP3AInformers 2021-01-11 11:45:02 -05:00
Terry Mancey 89c25f1cb1 Disable custom ad notifications in release and beta builds 2021-01-11 16:30:24 +00:00
Deep b69c92347d ADd UI for p3a full screen onboarding 2021-01-08 16:02:56 -05:00
Deep 5eeb103ab1 Update design for privacy stats
Format code
2021-01-03 18:42:32 -05:00
Deep c94cc272b1 Update bookmark button behaviour 2021-01-02 13:43:51 -05:00
samartnik 8ae5ae8fb5 [Android] Extended bytecode patching abilities
- added ability to redirect constructor
- simplified invocation of methods that are supposed to be patched
2020-12-15 16:07:33 -05:00
samartnik 7f548ebbf2 [Android] Fix for tint changes for home button
Chromium change:
https://chromium.googlesource.com/chromium/src/+/88757c64b874d89657ba1e2a4c53120d17fc84ff

Toolbar: HomeButton without HomepageManager dependency

Made HomeButton work without dependency on chrome.browser.homepage
classes. All the deps are now deferred to ToolbarManager.
The dependencies are injected not through ctor but init method
introduced in this CL since the home button and the enclosing view
(ToolbarLayout) are instantiated from xml.

Menu handling logic was moved to HomepageManager to make it test-
friendly.

Also removed a bunch of dead code in HomeButton. Several public setters
(ActivityTabObserver, ThemeColorProvider, StartSurfaceSupplier) were
used by BrowsingModeBottomToolbarCoordinator only (see
    https://crrev.com/c/1981099). There's no callsite left any more as
the class was already gone.

Bug: 1127732
2020-12-08 15:25:59 -05:00
samartnik 5afc7b0c6b [Android] Toolbar: HomeButton without HomepageManager dependency
Chromium change:
https://chromium.googlesource.com/chromium/src/+/88757c64b874d89657ba1e2a4c53120d17fc84ff

Toolbar: HomeButton without HomepageManager dependency

Made HomeButton work without dependency on chrome.browser.homepage
classes. All the deps are now deferred to ToolbarManager.
The dependencies are injected not through ctor but init method
introduced in this CL since the home button and the enclosing view
(ToolbarLayout) are instantiated from xml.

Menu handling logic was moved to HomepageManager to make it test-
friendly.

Also removed a bunch of dead code in HomeButton. Several public setters
(ActivityTabObserver, ThemeColorProvider, StartSurfaceSupplier) were
used by BrowsingModeBottomToolbarCoordinator only (see
    https://crrev.com/c/1981099). There's no callsite left any more as
the class was already gone.

Bug: 1127732
2020-12-08 15:25:56 -05:00
samartnik e520d8dd3c [Android] Swipe gesture was removed for bottom toolbar
Chromium change:
https://chromium.googlesource.com/chromium/src/+/0c251a1554cbbb58867db4e90fe823490a2085d3

Toolbar: Delete unused code in bottom bar

Bottom toolbar does not to support swipe gesture. This CL deletes the
code that handled it in ScrollingBottomViewResourceFrameLayout.

Bug: 1127732
2020-12-08 15:25:01 -05:00
samartnik b4f42ab370 [Android] HelpAndFeedback was removed
Chromium change:
https://chromium.googlesource.com/chromium/src/+/8098bca24a5d3610403552256d0e8bc4c9610429

Remove HelpAndFeedback.

The plan for this two-sided patch is:
1) Add the new class under feedback/ and AppHooks method upstream with
no reference.
2) Extend the new class downstream and add the new AppHooks method.
3) Update upstream references to point to the new AppHooks method.
4) Cleanup in downstream repository.
5) Cleanup in upstream repository.

1) was done in https://crrev.com/c/2364581.
2) was done in https://crrev.com/i/3227761.
3) was done in https://crrev.com/c/2414779.
4) was done in https://crrev.com/i/3274398.
5) is done in this CL.

Note that the change in SigninUtils was a miss from step 3). Ideally
all references to HelpAndFeedback should be removed in 3), but there is
one left in SigninUtils. The consequence is that after step 4) is landed,
this reference can only be pointed to the upstream implementation.

Bug: 1117343
2020-12-08 15:24:33 -05:00
samartnik a52e5254f7 [Android] Added ability to prevent auto downloading and opening 2020-11-30 14:41:10 -05:00
Terry Mancey ef8f8da9c7 Implement custom Brave Ad notifications 2020-11-21 21:26:36 +00:00
Deep 1044a27165 Update widget for no connection state 2020-11-18 10:43:02 -05:00
AlexeyBarabash cf414afae3 Android P3A informer for updated users 2020-11-16 14:36:38 +02:00
Deep 4583b796b3 Add rewards onboarding modal
Update existing UI
2020-11-10 17:39:27 -05:00
samartnik e3bbb0912c [Android] Fixed feedback url in settings 2020-11-04 11:14:08 -05:00
samartnik 4a2c2724e5 [Android] Fixes for menu and tab switcher buttons
This commit fixes behaviour for menu and tab switcher buttons in
landscape and overview mode when bottom toolbar is enabled.

Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/ad4cf0623574d9d7ea517d0063cb054d98766964

Duet: Clean up unused classes and resources

Delete all the classes and resources left unused by
Duet (BottomToolbar).

Bug: 1081343
2020-10-28 14:04:00 -04:00
mkarolin 3fbfdb6acc [Android] enable_feed_in_chrome was removed.
Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/e274ab4bfbb68201b4c2cf36e8b7c0cf29981c17

commit e274ab4bfbb68201b4c2cf36e8b7c0cf29981c17
Author: Dan Harrington <harringtond@chromium.org>
Date:   Wed Sep 30 19:06:12 2020 +0000

    Add enable_feed_v1 compile flag

    And restructure feed code so that we can use it.

    This flag pulls Feed v1 out of the build.
    It's a bit different that enable_feed_v2. enable_feed_v2
    retains most of the v2 code in chromium -- only the internal
    code is actually removed when enable_feed_v2 is off.
    If both flags are ON (the default), we use the InterestFeedV2
    feature to select which version to use. To facilitate this,
    only feed_feature_list.cc and FeedFeatures.java should inspect
    the state of this feature directly.

    If both build flags are OFF, we use the V2 UI classes as
    essentially a pass-through to a recycler view, but will
    not request any Feed content.

    The compile flag enable_feed_in_chrome was removed.

    Other changes:
    * I've moved some files around to make it more clear what code
      is for v1 only.
    * I've added FeedV1 and FeedV2 java classes to wrap access to
      version specific things, so that FeedV1 can be removed using
      the compile flag.

    Bug: 1129187
2020-10-28 14:03:59 -04:00
samartnik 82e8f27fdd [Android] TileView and TileWithTextView classes are collapsed
Chromium change:
https://chromium.googlesource.com/chromium/src/+/7561e2f936dbd8563840ee776a7dcb036515373c

Create a basic TileView MVC component.

This change introduces a set of classes and properties enabling the
TileView to become a MVC component.

The change collapses the TileView and TileWithTextView classes into
one to avoid awkward naming. The TileView base class is never used as
a stand-alone component and MVC allows the class to control the
visibility of the TextView with ease.

The MVC component features all UI specific features used by TileView,
TileWithTextView, SuggestionsTileView and TopSitesTileView.

Bug: 1106109
2020-10-28 14:03:59 -04:00
samartnik c86d69b866 [Android] Move BottomToolbar code to brave-core (stage 3)
Pacthes to integrate BottomToolbar back to Chromium

Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/ad4cf0623574d9d7ea517d0063cb054d98766964

Duet: Clean up unused classes and resources

Delete all the classes and resources left unused by
Duet (BottomToolbar).

Bug: 1081343
2020-10-28 14:03:58 -04:00
samartnik 3965130cc8 [Android] Changes for menu on bottom toolbar
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/ad4cf0623574d9d7ea517d0063cb054d98766964

Duet: Clean up unused classes and resources

Delete all the classes and resources left unused by
Duet (BottomToolbar).

Bug: 1081343
2020-10-28 14:03:57 -04:00
samartnik 6409a63743 [Android] Move BottomToolbar code to brave-core (stage 2)
Code clean up

Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/ad4cf0623574d9d7ea517d0063cb054d98766964

Duet: Clean up unused classes and resources

Delete all the classes and resources left unused by
Duet (BottomToolbar).

Bug: 1081343
2020-10-28 14:03:57 -04:00
samartnik f58e1205b7 [Android] Move BottomToolbar code to brave-core (stage 1)
Moved code deleted in Chromium to brave-core

Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/ad4cf0623574d9d7ea517d0063cb054d98766964

Duet: Clean up unused classes and resources

Delete all the classes and resources left unused by
Duet (BottomToolbar).

Bug: 1081343
2020-10-28 14:00:05 -04:00
Deep 1fd8b04e50 Apply changes for BRE in existing code
Refactor code

Refactor UI
2020-10-22 09:10:57 +02:00
Deep 4310a934b8 Update UI and Fix issues with blanck screen
Refactor existing code
2020-10-17 13:02:40 -04:00
Deep 33d017ab6d Update Logic for widget tsack 2020-10-17 13:02:40 -04:00
Deep 3be1f40271 Add widget stack activity
ADd settings option for widget stack
2020-10-17 13:02:40 -04:00
Deep 424f37fe68 Reorder imports 2020-10-17 13:02:40 -04:00
Deep 9ccd7999e5 Fix convert dependency
Update android related code to reflect the change
2020-10-17 13:02:40 -04:00
Deep 4ed8651271 Add UI and code for binannce convert page 2020-10-17 13:02:40 -04:00
Deep 19b8156a7d Add UI and code for binance Convert page 2020-10-17 13:02:40 -04:00
Deep 2b5b26f2bb Add layouts and behaviours for summary and deposit
Update QR code dialog
2020-10-17 13:02:40 -04:00
Deep 4bc8700a1d Add model class for balance
Update UI
2020-10-17 13:02:40 -04:00
Deep 93a59cd1c0 Add binance observer
Update binance native worker new functions

Change location for BinanceActivity

ADd setAuthToken function in binance native worker
2020-10-17 13:02:39 -04:00