Commit Graph
963 Commits
Author SHA1 Message Date
Gabriel Luong d7a8599871 Bug 2052904 - Part 4: Replace mozac_ic_arrow_trending_up_24 with mozac_ic_arrow_trending_24 r=android-reviewers,devota
- mozac_ic_arrow_trending_up_24 was renamed to mozac_ic_arrow_trending_24 in the acorn-icons upstream repo and mozac_ic_arrow_trending_24 already exists in ui-icons component. This is a de-duplication change.

Differential Revision: https://phabricator.services.mozilla.com/D311868
2026-07-14 08:17:26 +00:00
Release Engineering Landoscript 1363bb8eb8 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-07-14 00:13:53 +00:00
Gabriel Luong 1f8a47766d Bug 2054421 - Update Outline Variant color token with the latest Nova specs changes r=android-reviewers,Roger
- Updates Outline Variant color token with the latest dark and private colors from https://www.figma.com/design/MjufE1X5fvkxZ0YneX4kRd/Android-Library--Nova-?node-id=72548-27192&m=dev

Differential Revision: https://phabricator.services.mozilla.com/D311776
2026-07-13 17:20:40 +00:00
Release Engineering Landoscript b0347c2f38 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-07-13 00:11:59 +00:00
Gabriel Luong 76fa35b6e1 Bug 2053992 - Remove deprecated textOnColorPrimary and iconOnColor from AcornColors r=android-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D300957
2026-07-10 07:04:35 +00:00
Gabriel Luong 27684e6500 Bug 2038521 - Align CFR with the Acorn M3 specs r=android-reviewers,petru
Figma: https://www.figma.com/design/MjufE1X5fvkxZ0YneX4kRd/Android-Library--Nova-?node-id=63923-29025&m=dev

Differential Revision: https://phabricator.services.mozilla.com/D299626
2026-07-10 05:28:03 +00:00
Release Engineering Landoscript 8d1e3e01e0 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-07-10 00:13:36 +00:00
Release Engineering Landoscript 4764744232 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-07-09 00:12:16 +00:00
Mugurell 13da61f679 Bug 2046858 - Improve scrolling to the URL domain of the displayed URL r=android-reviewers,skhan
Drive the URL scroll from a LaunchedEffect keyed on ScrollState.maxValue
instead of a one-shot launch in onSizeChanged.

Differential Revision: https://phabricator.services.mozilla.com/D308501
2026-07-08 06:04:35 +00:00
Release Engineering Landoscript 8616857ecc No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-07-08 00:13:53 +00:00
Mugurell d1d471927c Bug 2025163 - Show the toolbar's URL as multiline when edited if bigger than 10k characters r=android-reviewers,moyin
This avoids an upstream issue in Compose leading to UX instability and even
to crashes. See https://issuetracker.google.com/issues/527276313.

Differential Revision: https://phabricator.services.mozilla.com/D309535
2026-07-02 17:31:35 +00:00
Mugurell e557570993 Bug 2051295 - Cap edited URLs in the toolbar to 25k characters to avoid UX instability/crashes r=android-reviewers,moyin
This is the same limit we already apply for multiple other scenarios in the app.
Capping the query bounds every path that feeds the toolbar: tap-to-edit prefill,
the toolbar's "Paste" action (PasteFromClipboardClicked → SearchQueryUpdated → query),
voice, QR, and Lens.
All of them are now ≤ 25k before they reach rememberTextFieldState/BasicTextField.

Differential Revision: https://phabricator.services.mozilla.com/D309534
2026-07-02 17:31:34 +00:00
Mugurell f3cc7e463d Bug 2051304 - Add custom testTags for security info button states r=android-reviewers,jonalmeida
While the page is loaded the site info button is not actionable.
Waiting in UI tests until the page is loaded and the info button becomes
actionable was hard.
Until now.

Differential Revision: https://phabricator.services.mozilla.com/D309820
2026-07-02 12:45:54 +00:00
Ryan VanderMeulen c9be87198e Bug 2044785 - Update AndroidX Core to version 1.19.0. r=android-reviewers,ai4dev-reviewers,adhingra,suhaib
AndroidX Core 1.19 folds the core-ktx artifact into core, so drop the androidx-core-ktx catalog
alias and move consumers from libs.androidx.core.ktx to libs.androidx.core.

Differential Revision: https://phabricator.services.mozilla.com/D309650
2026-06-30 19:00:44 +00:00
Titouan Thibaud a3ebd550f6 Bug 2050581 - Create a version of FloatingActionButton that accepts a custom icon composable. r=android-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D309056
2026-06-30 15:46:34 +00:00
Ryan VanderMeulen 7752fe0e39 Bug 2049916 - Refresh AC, Fenix, and Focus lint baselines. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D309482
2026-06-30 14:05:34 +00:00
Ryan VanderMeulen 6480e5a17d Bug 2049916 - Remove unused KotlinCompile imports from android-components build files. r=android-reviewers,mcarare
These `import org.jetbrains.kotlin.gradle.tasks.KotlinCompile` statements are not referenced by any
build script; the type is unused, so drop the dead imports.

Differential Revision: https://phabricator.services.mozilla.com/D309478
2026-06-30 14:05:30 +00:00
Ryan VanderMeulen 2377291032 Bug 2049916 - Migrate Android module plugin application to the plugins DSL. r=android-reviewers,mcarare
Move the kotlinx-serialization, parcelize, safeargs, KSP, jacoco, and maven-publish plugins from
imperative apply syntax to the plugins {} block, using version-catalog aliases. Plugins supplied via
the buildscript classpath (parcelize, safeargs) use versionless catalog entries so the plugins DSL
does not attempt a compatibility check against their unknown classpath version.

Applying kotlinx-serialization through the plugins DSL also makes its dedicated buildscript classpath
dependency redundant, so drop the now-vestigial buildscript blocks from the affected modules.

Differential Revision: https://phabricator.services.mozilla.com/D309477
2026-06-30 14:05:30 +00:00
Ryan VanderMeulen d298e30fbf Bug 2049916 - Bump AGP to 9.2.1 and migrate to built-in Kotlin. r=android-reviewers,mcarare
Updates android-gradle-plugin to 9.2.1 (lint 32.2.1) and migrates off the
org.jetbrains.kotlin.android plugin to AGP's built-in Kotlin, pinning the Kotlin version on each
root's buildscript classpath and applying the com.android.library/application plugins through the
plugins DSL.

Differential Revision: https://phabricator.services.mozilla.com/D309476
2026-06-30 14:05:29 +00:00
Titouan Thibaud 1e226a66f4 Bug 2039022 - Fix SyncButton animation on Sync tabs screen. r=android-reviewers,npoon,007
Added an `iconModifier` parameter to the FloatingActionButton composable.

Differential Revision: https://phabricator.services.mozilla.com/D308786
2026-06-26 08:59:03 +00:00
Gabriel Luong b18bad096a Bug 2035341 - Part 2: Add a detekt rule to enforce the compose-base Button usage r=android-reviewers,jdelorenzo
Differential Revision: https://phabricator.services.mozilla.com/D306687
2026-06-17 03:04:31 +00:00
Roger Yang 8a8a779cdb Bug 2030416 - push extracted text updates to the IME. r=android-reviewers,petru
Differential Revision: https://phabricator.services.mozilla.com/D307029
2026-06-17 01:47:24 +00:00
Release Engineering Landoscript cdaba4e65d No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-17 00:11:24 +00:00
Release Engineering Landoscript 2daa1089c8 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-16 00:14:25 +00:00
Gabriel Luong f9882dca50 Bug 2047494 - Add privacy mask gradient to AcornGradientScheme r=android-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D306688
2026-06-15 23:36:18 +00:00
Gabriel Luong 1fed15da43 Bug 2011413 - Part 1: Add the Icon Private color token to AcornColors r=android-reviewers,petru
Figma: https://www.figma.com/design/MjufE1X5fvkxZ0YneX4kRd/Android-Library--Nova-?node-id=74800-18725&m=dev

Differential Revision: https://phabricator.services.mozilla.com/D306616
2026-06-15 18:20:18 +00:00
Release Engineering Landoscript a8b7616a25 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-15 00:10:40 +00:00
Release Engineering Landoscript e0c36e7978 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-14 00:14:10 +00:00
Gabriel Luong ad32d53135 Bug 2046982 - Update the status badge components to use new color tokens r=android-reviewers,007
Figma: https://www.figma.com/design/MjufE1X5fvkxZ0YneX4kRd/Android-Library--Nova-?node-id=73403-43561&m=dev

Differential Revision: https://phabricator.services.mozilla.com/D306346
2026-06-13 00:37:23 +00:00
Release Engineering Landoscript 07c13fd829 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-13 00:11:28 +00:00
Gabriel Luong 67b66cfeac Bug 2046871 - Update the M3 color tokens with the latest changes r=android-reviewers,007
Figma: https://www.figma.com/design/MjufE1X5fvkxZ0YneX4kRd/Android-Library--Nova-?node-id=64745-6578&m=dev
Changelog: https://www.figma.com/design/MjufE1X5fvkxZ0YneX4kRd/Android-Library--Nova-?node-id=71378-4621&m=dev

Differential Revision: https://phabricator.services.mozilla.com/D306240
2026-06-12 03:28:52 +00:00
Release Engineering Landoscript 29d633484d No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-12 00:13:20 +00:00
Mugurell b781849fe4 Bug 2044581 - Have the contextual menu appear for toolbar's both typed text and autocomplete suggestion r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D304492
2026-06-11 04:29:08 +00:00
Mugurell 5001c7f0d4 Bug 2033713 - Force hiding the IME when the editable address bar looses focus or leaves composition r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D304352
2026-06-11 04:29:05 +00:00
Mugurell 512b089e0d Bug 2042361 - Derive the toolbar's adaptive padding from the measured width r=android-reviewers,Roger
After the recent Compose update, currentWindowAdaptiveInfo()'s reported
window size lags behind onConfigurationChange following a rotation
(https://issuetracker.google.com/issues/515098186), leaving the toolbar
with portrait padding while in landscape and vice versa.

Read the available width synchronously at measure time instead, via a
small layout modifier that picks the horizontal padding from the incoming
constraints. This keeps the toolbar's content in the normal composition
pass while reacting to the actual measured width.

Differential Revision: https://phabricator.services.mozilla.com/D303998
2026-06-11 04:29:03 +00:00
Mugurell 5f2a30414e Bug 2036586 - Confirm URL suggestion on spacebar swipe right in the new Compose toolbar r=android-reviewers,mcarare
The autocomplete suggestion is rendered via an OutputTransformation and is
not part of the real editable text, so keyboards cannot move the cursor into
it through normal cursor-control.
Will wrap the IME's InputConnection so that the setSelection patterns those
gestures emit are translated into a suggestion accept:
  - cursor moves from inside the real query to its end,
  - redundant setSelection(text.length, text.length) (Gboard spacebar swipe),
  - request for a cursor position inside the visible suggestion suffix.

DPAD_RIGHT routed through sendKeyEvent is handled the same way.

The heuristic for whether to commit the current suggestion or not is extracted
as shouldAcceptSuggestionOnSelectionUpdate to be unit tested.

The functionality was tested with GBoard, Heliboard, Swiftkey and Fcitx5.

Differential Revision: https://phabricator.services.mozilla.com/D301501
2026-06-11 04:29:01 +00:00
Mugurell 8b71cb8848 Bug 2044610 - Remove autocomplete suggestion state when search ends r=android-reviewers,Roger
This ensures that when a new search starts there is no lingering autocomplete suggestion.

Differential Revision: https://phabricator.services.mozilla.com/D304494
2026-06-11 04:28:58 +00:00
Mugurell b512661df3 Bug 2044584 - Have toolbar's contextual menu hide when the query is edited r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D304493
2026-06-11 04:28:56 +00:00
rperta ac7f2597ca Revert "Bug 2044581, Bug 2033713, Bug 2042361, Bug 2036586, Bug 2044610, Bug 2044584 - Have the contextual menu appear for toolbar's both typed text and autocomplete suggestion r=android-reviewers,mcarare" for causing android bustages related to autocomplete
This reverts commit 4d401f74e3.

Revert "Bug 2033713 - Force hiding the IME when the editable address bar looses focus or leaves composition r=android-reviewers,mcarare"

This reverts commit 02882569c6.

Revert "Bug 2042361 - Derive the toolbar's adaptive padding from the measured width r=android-reviewers,Roger"

This reverts commit 7edd10f5b8.

Revert "Bug 2036586 - Confirm URL suggestion on spacebar swipe right in the new Compose toolbar r=android-reviewers,mcarare"

This reverts commit 3e8397a0aa.

Revert "Bug 2044610 - Remove autocomplete suggestion state when search ends r=android-reviewers,Roger"

This reverts commit aebf738da6.

Revert "Bug 2044584 - Have toolbar's contextual menu hide when the query is edited r=android-reviewers,mcarare"

This reverts commit 2479bf776a.
2026-06-10 21:12:32 +00:00
Mugurell 4d401f74e3 Bug 2044581 - Have the contextual menu appear for toolbar's both typed text and autocomplete suggestion r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D304492
2026-06-10 18:58:10 +00:00
Mugurell 02882569c6 Bug 2033713 - Force hiding the IME when the editable address bar looses focus or leaves composition r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D304352
2026-06-10 18:58:08 +00:00
Mugurell 7edd10f5b8 Bug 2042361 - Derive the toolbar's adaptive padding from the measured width r=android-reviewers,Roger
After the recent Compose update, currentWindowAdaptiveInfo()'s reported
window size lags behind onConfigurationChange following a rotation
(https://issuetracker.google.com/issues/515098186), leaving the toolbar
with portrait padding while in landscape and vice versa.

Read the available width synchronously at measure time instead, via a
small layout modifier that picks the horizontal padding from the incoming
constraints. This keeps the toolbar's content in the normal composition
pass while reacting to the actual measured width.

Differential Revision: https://phabricator.services.mozilla.com/D303998
2026-06-10 18:58:05 +00:00
Mugurell 3e8397a0aa Bug 2036586 - Confirm URL suggestion on spacebar swipe right in the new Compose toolbar r=android-reviewers,mcarare
The autocomplete suggestion is rendered via an OutputTransformation and is
not part of the real editable text, so keyboards cannot move the cursor into
it through normal cursor-control.
Will wrap the IME's InputConnection so that the setSelection patterns those
gestures emit are translated into a suggestion accept:
  - cursor moves from inside the real query to its end,
  - redundant setSelection(text.length, text.length) (Gboard spacebar swipe),
  - request for a cursor position inside the visible suggestion suffix.

DPAD_RIGHT routed through sendKeyEvent is handled the same way.

The heuristic for whether to commit the current suggestion or not is extracted
as shouldAcceptSuggestionOnSelectionUpdate to be unit tested.

The functionality was tested with GBoard, Heliboard, Swiftkey and Fcitx5.

Differential Revision: https://phabricator.services.mozilla.com/D301501
2026-06-10 18:58:02 +00:00
Mugurell aebf738da6 Bug 2044610 - Remove autocomplete suggestion state when search ends r=android-reviewers,Roger
This ensures that when a new search starts there is no lingering autocomplete suggestion.

Differential Revision: https://phabricator.services.mozilla.com/D304494
2026-06-10 18:58:00 +00:00
Mugurell 2479bf776a Bug 2044584 - Have toolbar's contextual menu hide when the query is edited r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D304493
2026-06-10 18:57:57 +00:00
Silaghi 15f721e8bc Revert "Bug 2042361 - Use BoxWithConstraints instead of currentWindowAdaptiveInfo for toolbar's dynamic layout r=android-reviewers,Roger" for causing detect-leaks arm failures at ADDRESSBAR_URL_BOX
This reverts commit 36de45971b.
2026-06-10 13:15:56 +00:00
Mugurell 36de45971b Bug 2042361 - Use BoxWithConstraints instead of currentWindowAdaptiveInfo for toolbar's dynamic layout r=android-reviewers,Roger
The recent Compose version introduced a regression: the reported window size
lags behind onConfigurationChange after screen rotations.
This is tracked in https://issuetracker.google.com/issues/515098186.

Refactored the toolbar to use BoxWithConstraints which allows us to access
the measured screen dimensions.

Differential Revision: https://phabricator.services.mozilla.com/D303998
2026-06-10 07:37:47 +00:00
Release Engineering Landoscript 76011787f3 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-08 00:11:12 +00:00
Release Engineering Landoscript a918ff6507 No Bug - Import translations from https://github.com/mozilla-l10n/android-l10n CLOSED TREE 2026-06-05 00:12:51 +00:00
Gabriel Luong b3d64ce6c0 Bug 2040151 - Part 10: Remove unused layer3, tabActive and tabInactive acorn color tokens r=android-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D304616
2026-06-04 08:07:54 +00:00