Commit Graph

7798 Commits (07d43971c0767fc023996dc32eb73e3e37c6517a)
 

Author SHA1 Message Date
MickeyMoz 07d43971c0 Update Android Components version to 97.0.20211208143435. 3 years ago
Mozilla L10n Automation Bot c3cf4ae9e0 Import l10n. 3 years ago
Jonathan Almeida 01ba8959ce Issue #22757: Check the parent cast to AbstractBrowserTrayList first
We re-use the same ViewHolders in search term groups, so when we need to
cast to a AbstractBrowserTrayList for tab reordering, we need to check
our parent correctly first.
3 years ago
Christian Sadilek 6637f61088
Support tab movement/reordering (#22751)
* Adds basic support for tab reordering via drag-and-drop selected tabs

* ktlint/detekt formatting

* Use defaultTabsFilter (now not private) instead of getter

* Convert from position+filter API to target+placeAfter
Unfortunately I still need the filter passed around a bit

* Handle inactive tabs' holder being children of the RecyclerView of the normal tabs
Don't go through LayoutManager needlessly

* Non-working use tabID the whole way. Does not compile.

* Fix to do direct tab ID and use grid setting directly

* Remove non-null assertion. Now fully works for "other" tabs.

* Prevent grouped tabs from being dragged

* Remove unused import

* Add/fix comments

* Do API version check and use deprecated startDrag if too old.

* Build process fails: both outdated and too new, so reverting to just too new

* Use deprecated function and suppress warning

* fix space

* Suppress "TooManyFunctions" on DefaultTabsTrayController

* Repeatedly update tab movement during drag

* Remove multi-tab movement, only allow dragging if tab groups disabled, fix tab positioning during movement
I'm forced to suppress LongParameterList to get the settings information where it needs to go though

* Remove settings argument and corresponding long args suppression: instead get settings from parent AbstractBrowserTrayList's context

* New UI: Select a tab and then, while holding down, start dragging

* Revert to using before/after boolean to accomodate delays
Move drag transparency to start of drag

* Use new BlankDragShadowBuilder and DraggableItemAnimator to handle tab movement

* Replace Pair<>s with data classes

* Only drag if exactly 1 tab selected, don't consume drag event if not used

* Auto-scroll tab tray while dragging near top/bottom edge

* Remove unexpected scrolling on tab bind (triggered when tab is selected)

* Fix broken scroll behavior during dragging

* Cleanup for ktlint/detekt

* Constantly set elevation during drag in case of update
Clean code at drag start

* Add custom drag start behavior

* Add drag distance constant, do all touch-drag behavior in OnTouchListener

* Disable parent vertical scrolling on drag start, fix detekt ComplexCondition

* Minor cleanup/comments

* Revert removal of scroll on bind, this was related to something different

* Correction to prepareForDrop to match documentation- doesn't seem to have any effect

* Simplify via unchecked typecast, use ViewCompat

* Use ViewConfiguration.scaledTouchSlop instead of arbitrary 30px

* Added tabReorderingFeature flag, split drag interactor to separate function to satisfy complexity requirement

Co-authored-by: Steven Knipe <ssk97@case.edu>
Co-authored-by: ssk97 <knipesteven@gmail.com>
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
3 years ago
Christian Sadilek f919e97445 Closes #21759: Do not render home fragment when launching to tab
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
3 years ago
Mozilla L10n Automation Bot 910a425cc3 Import l10n. 3 years ago
Gabriel Luong 378f19eb59 For #22741 - Remove all unused strings marked moz:removedIn <= 94 3 years ago
Christian Sadilek 229c410437 Introduce timeout for capturing thumbnail in BrowserAnimator 3 years ago
Christian Sadilek ae0dba29b1 Prevent flash when navigating to home 3 years ago
Christian Sadilek 28222df29c Fix BrowserRobot.goToHomescreen to wait for home screen to be rendered
It was previously just waiting for the application to be idle, which
is not a reliable check in case the navigation to home is triggered
on completion of an async operation i.e., the app / main thread may
be idle, but the navigation to home hasn't completed yet.

goToHomeScreen further needs to wait for the browser fragment's
home button to exist before clicking it.
3 years ago
Gabriel Luong 84c6f88154 Update version.txt to 97.0.0-beta.1 3 years ago
Mugurell 604f188970 For #22445 - Improve the scrolling behavior for Recently visited
One important issue was that the items are smaller that the width of the
screen and so a bit of the next column would be showing also and user could
interact with this only peaking items and a long press would open a dropdown
menu with no place to anchor it.
To mitigate this:
- the items will now snap to the next position when scrolling so that we'll
always show at least one column in it's entirety.
- menus are enabled only if more than half of the item is visible effectively
disabling clicks on that peaking area of neighbour columns.

This patch also updates the divider for history groups which previously wasn't
showing.
3 years ago
Gabriel Luong 67fb033f1b For #22729 - Tag unused strings for removal 3 years ago
Andrei Joltan ee9eab0d8c
[UI Smoke Tests] New undoDeleteBookmarkFolderTest UI test and Improve coverage for deleteNonEmptyBookmarkFolderTest UI test (#22587)
* New undoDeleteBookmarkFolderTest smoke UI test

* Improve coverage for deleteNonEmptyBookmarkFolderTest UI smoke test

Co-authored-by: AndiAJ <andiaj@users.noreply.github.com>
3 years ago
Mozilla L10n Automation Bot e6d1c9a564 Import l10n. 3 years ago
Gabriel Luong 6a28296be7 For #22702 - Replace home_show_all_button_text with fx_mobile_text_color_action color token 3 years ago
Gabriel Luong bf96e2ae60 For #22725 - Regenerate lint-baselint.xml 3 years ago
Gabriel Luong 596072729d For #22701 - Replace whats_new_notification_color with fx_mobile_icon_color_notice color token 3 years ago
Gabriel Luong a4894256f9 For #22712 - Remove unused menuCategoryText attribute 3 years ago
Gabriel Luong 81c42ca7ee For #22696 - Remove unused tab_header.xml resource 3 years ago
Gabriel Luong 83fdf78da1 For #22708 - Remove unused syncedTabsSeparator attribute 3 years ago
Sarah Khan e18cf36117 For #22495 - Disable inactive tabs survey 3 years ago
Aaron Train 77191d8ef2
For #22710 - Disable run-ui in build-contributor-pr workflow (#22720)
* Disable run-ui in build-contributor-pr workflow

Unfortunately the problem with INSTALL_FAILED_INSUFFICIENT_STORAGE is still showcasing itself on v2.21.0 – I'm not aware of any workaround at this moment in time, so I'm disabling this step of the workflow again.

* Update build-contributor-pr.yml
3 years ago
Gabriel Luong 2c5cfb2447 For #22698 - Remove unused mozac_browser_menu_item_switch.xml resource 3 years ago
Mozilla L10n Automation Bot c27714a314 Import l10n. 3 years ago
MickeyMoz 97395115ed Update Android Components version to 96.0.20211204190107. 3 years ago
Mozilla L10n Automation Bot 2a5a2d7b6e Import l10n. 3 years ago
Mozilla L10n Automation Bot 1d5f7db7c7 Import l10n. 3 years ago
Noah Bond 73cfd0b145 For #22691 - Add Composables for Primary and Secondary text 3 years ago
Aaron Train b83bddfb31 Re-enable contributor UI test job
Trying out @v2.21.0 to see if INSTALL_FAILED_INSUFFICIENT_STORAGE is resolved
3 years ago
Gabriel Luong 0078d7fe01 For #22676 - Replace top_site_title_text with fx_mobile_text_color_primary color token 3 years ago
MickeyMoz 745ec1a9f6 Update Android Components version to 96.0.20211203041618. 3 years ago
Oana Horvath b1dab8170c For #21002: Add testETPOffGlobally UI smoke test 3 years ago
Gabriel Luong 4fe3d6db02 For #22654 - Add new color tokens provided by the design systems to colors.xml 3 years ago
Gabriel Luong e20ef25bd1 For #22637 - Add new color tokens provided by the mobile styles to FirefoxTheme 3 years ago
Mozilla L10n Automation Bot caea82864d Import l10n. 3 years ago
Noah Bond 31e86842dd
For #22516 - Fixed alignment of "Show all" buttons on the homescreen (#22650)
* For #22516 - Fixed show all button alignment with section headers on the Homepage

* For #22516 - Added correct content description back in for recently visited show all button

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3 years ago
Christian Sadilek 26713a58c8 Refactor: Move historymetadata classes in separate package 3 years ago
AndiAJ cb48ff7882 Refactor recently closed tabs UI smoke tests 3 years ago
AndiAJ f6caf507fd Move verifyRecentlyClosedTabsListTest UI test from SmokeTest class 3 years ago
MickeyMoz c784154d67 Update Android Components version to 96.0.20211202143140. 3 years ago
AndiAJ 0ac7bc80ab Disable failing verifyUndoSnackBarTest UI test 3 years ago
Sebastian Kaspari b04eeccf14 Android Autofill: Enable keyboard inline autofill suggestions 3 years ago
Roger Yang 3d33a9422c Close #20701: Dismiss keyboard when scrolling home screen 3 years ago
gmierz 1248f41a0a Add webrender flag for the extra option. 3 years ago
Aaron Train 92dc897b5f No issue: fix URL in ui-test kind.yml
Updating the URL (https://mana.mozilla.org/wiki/x/P_zNBw)
3 years ago
Mozilla L10n Automation Bot 9fa9ae3375 Import l10n. 3 years ago
rxu 4d9a58c156 Add distribution_id into first session ping 3 years ago
Mozilla L10n Automation Bot 514f41fe67 Import l10n. 3 years ago
Gabriel Luong 3c82a34aa1 For #22592 - Refactor hideOnboardingIfNeeded() calls when the home menu items are tapped 3 years ago