Commit Graph

397 Commits

Author SHA1 Message Date
sarah541
a8ca80d2c1 [components] Improve search term performance on the toolbar 2022-06-01 15:51:49 +00:00
Mozilla L10n Automation Bot
df86e312d0 [components] Import l10n. 2022-05-24 00:25:19 +00:00
Mugurell
d78b06b6bf [components] For https://github.com/mozilla-mobile/android-components/pull/11175 - Migrate runBlocking and runBlockingTest to runTest in unit tests
Used `runTestOnMain` where `MainCoroutineRule` was used or needed to be used,
`runTest` elsewhere.

Extra effort for removing all `runBlocking` occurrences in unit tests.
`kotlinx.coroutines.test.runTest` is a test specific API that seems like a more
appropriate way for running tests in a coroutine than the general
`kotlinx.coroutines.runBlocking` api.
2022-05-10 13:45:03 +00:00
Mozilla L10n Automation Bot
8e44ec6a2b [components] Import l10n. 2022-05-08 23:01:10 +00:00
Mozilla L10n Automation Bot
a04407ea38 [components] Import l10n. 2022-05-06 00:18:19 +00:00
Roger Yang
bd452c3d99 [components] Close https://github.com/mozilla-mobile/android-components/issues/12109: Support removing edit action end in edit toolbar 2022-05-05 18:17:09 +00:00
Mozilla L10n Automation Bot
50160eb28f [components] Import l10n. 2022-04-30 00:23:45 +00:00
mcarare
f79d8f4759 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Check a11y enabled state when sending a11y event. 2022-04-28 10:39:46 +00:00
mcarare
c867f69721 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Send accessibility event directly.
This removed the need for using a delegate.
2022-04-28 08:33:29 +00:00
mcarare
2275e49731 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Run tests on sdk 30. 2022-04-28 08:33:29 +00:00
Roger Yang
a51595e683 [components] Close https://github.com/mozilla-mobile/android-components/issues/12008: Support auto hiding edit action end in browser toolbar 2022-04-22 14:57:19 +00:00
Gabriel Luong
7c3dc51b44 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11890: Add a new action container in the EditToolbar 2022-03-24 20:27:23 +00:00
Mozilla L10n Automation Bot
e009629e17 [components] Import l10n. 2022-03-12 00:21:49 +00:00
Mugurell
1f12144020 [components] For https://github.com/mozilla-mobile/android-components/issues/10638 - Remove reflective access to "mSpanSlop" and "mMinSpan"
Removed reflective access to non-public SDK APIs controlling the sensitivity of
the gesture detector following which sparingly and for very short time a
pinch/spread to zoom gesture might be identified first as a scroll gesture and
move the toolbar a little before snapping to it's original position.
2022-03-10 10:51:42 +00:00
Mozilla L10n Automation Bot
61700d4de2 [components] Import l10n. 2022-02-12 00:25:46 +00:00
Mozilla L10n Automation Bot
3b8a78a7a9 [components] Import l10n. 2022-02-05 00:21:10 +00:00
Ionut Cristian Bedregeanu
64ca84523d [components] For https://github.com/mozilla-mobile/android-components/issues/11499 - Update tracking protection icon state
Update the state of tracking protection indicator even when is not displayed
in order to avoid that scenario when the tracking protection became visible later
but its state is not the last one
2022-01-25 07:31:02 +00:00
Ionut Cristian Bedregeanu
5348da1bc1 [components] For https://github.com/mozilla-mobile/android-components/issues/11545 - Replace clearColorFilter with setColorFilter for security icon
Clear color filter doesn't work on Api 21, 22
Even if we invalidate the view after clearColorFilter the filter is not removed, so to fix the bug
we need to use setColorFilter with color Color.Transparent when the API version is lower than 23
2022-01-21 09:01:07 +00:00
Mozilla L10n Automation Bot
3d267546da [components] Import l10n. 2022-01-07 00:40:22 +00:00
Mozilla L10n Automation Bot
12afbcd07d [components] Import l10n. 2021-12-22 00:25:35 +00:00
Mozilla L10n Automation Bot
9729f2fadb [components] Import l10n. 2021-12-12 00:23:03 +00:00
Mozilla L10n Automation Bot
f90987e522 [components] Import l10n. 2021-11-19 00:33:58 +00:00
Ionut Cristian Bedregeanu
a3340a5764 [components] For https://github.com/mozilla-mobile/android-components/issues/11279 - Add a method to remove navigation actions from toolbar
Add a new method(removeNavigationAction) in Toolbar interface to be able to remove a navigation action
as we have at this moment for browser/page actions(removeBrowserAction, removePageAction)
2021-11-17 13:22:48 +00:00
mike a
458027fb14 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11252: fix for not hiding keyboard after edit toolbar loses focus 2021-11-15 17:21:10 +00:00
Mozilla L10n Automation Bot
750a0c4f03 [components] Import l10n. 2021-11-03 00:19:18 +00:00
Mozilla L10n Automation Bot
f9302c26d5 [components] Import l10n. 2021-10-25 17:30:12 +00:00
Christian Sadilek
00172fcad0 [components] Fix breakage in EditToolbarTest 2021-10-23 16:16:03 +00:00
Mozilla L10n Automation Bot
19628d9c83 [components] Import l10n. 2021-09-30 00:21:29 +00:00
Mozilla L10n Automation Bot
89e858047c [components] Import l10n. 2021-09-12 00:22:14 +00:00
Mozilla L10n Automation Bot
0e13472f95 [components] Import l10n. 2021-09-11 00:23:46 +00:00
mcarare
74afd9572b [components] For https://github.com/mozilla-mobile/android-components/issues/10916: Update layout_goneMarginStart to match display toolbar. 2021-09-01 17:32:18 +00:00
Mozilla L10n Automation Bot
0c48094300 [components] Import l10n. 2021-08-31 00:19:40 +00:00
Mozilla L10n Automation Bot
85f78e899b [components] Import l10n. 2021-08-25 00:17:33 +00:00
Mugurell
e277dd03f0 [components] For https://github.com/mozilla-mobile/android-components/issues/10803 - Force expanding the toolbar if requested by GeckoView 2021-08-16 07:46:15 +00:00
Mozilla L10n Automation Bot
5f47d86a46 [components] Import l10n. 2021-08-13 00:23:45 +00:00
Jonathan Almeida
478711a6bf [components] Close https://github.com/mozilla-mobile/android-components/issues/10677: Update Mockito to 3.11.2
Co-authored-by: Mugurell <Mugurell@users.noreply.github.com>
2021-08-12 02:25:56 +00:00
Mozilla L10n Automation Bot
4b57111308 [components] Import l10n. 2021-08-05 14:32:48 +00:00
Steven Knipe
dfd65e842d [components] Updated failing test to make sense (require different images and correct description) 2021-08-02 12:24:51 +00:00
Steven Knipe
ea9cb18430 [components] Add longClickListener documentation, fix style problems
move TwoStateButton background to match argument order
2021-08-02 12:24:51 +00:00
Steven Knipe
d87ac452f6 [components] Add tinting to TwoStateButton
(requires its own setTintResource function)
2021-08-02 12:24:51 +00:00
Steven Knipe
6efbccee57 [components] Add disableInSecondaryState to TwoStateButton 2021-08-02 12:24:51 +00:00
Steven Knipe
6bb6265dc7 [components] Change enable/disable to primary/secondary, update documentation 2021-08-02 12:24:51 +00:00
Steven Knipe
d3a10b29bc [components] TwoStateButton: add support for longclick listener,
Also fix reversal of enabled/disabled logic
2021-08-02 12:24:51 +00:00
Steven Knipe
2339f9b1d8 [components] Add longClickListener to Toolbar's ActionButton and BrowserToolbar's Button 2021-08-02 12:24:51 +00:00
Sebastian Kaspari
ebf54eb308 [components] TrackingProtectionIconView: Always call updateIcon() to initialize. 2021-07-30 09:32:28 +00:00
Sebastian Kaspari
ce323400dd [components] Run ktlintFormat to fix new ktlint errors. 2021-07-28 12:03:23 +00:00
Arturo Mejia
e4d539f111 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10448 show toolbar permissions indicator when permissions change from their default. 2021-07-27 17:25:23 +00:00
Sebastian Kaspari
f29656ddc0 [components] Revert string removal by 06c42dd893188a7da69ac2eba10f4fc1d44fab3d
Some of those strings seem to be used by Fenix only.
2021-07-20 20:27:13 +02:00
Sebastian Kaspari
f14b267388 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update dependencies to support Jetpack Compose and add first prototype components.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Upgrade to Gradle 7.
* Update Android Gradle Plugin to 7.0.0 Beta 2.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Generate BuildConfig with VERSION_CODE and VERSION_NAME fields in library modules (for Glean).
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add first component using Jetpack Compose: compose-browser-toolbar.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Introduce Jetpack Compose bindings for lib-state.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Upstream Jetpack Compose toolbar prototype from Reference Browser.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add TargetTab helper for observing specific tabs.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add compose-engine component for adding Jetpack Compose bindings to a concept-engine implementation.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add new sample app (samples-compose-browser) for prototyping browser UI using Jetpack Compose.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update to Beta 3 of the Android Gradle plugin.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Allow usage of http when substituting maven repositories in CI.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Rename TabTarget helper to just Target.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Make BrowserToolbar follow target tab too.
* Add awesomebar prototype using Jetpack Compose.
* Update to Gradle 7.0.2.
2021-07-20 16:22:26 +00:00
Mugurell
cd404dfd7b [components] For https://github.com/mozilla-mobile/android-components/issues/10555 - BrowserToolbarBehaviorTest cleanup
This commented method seems to be a leftover from the previous refactoring.
"behavior.forceExpand(..)" now calls "expandWithAnimation" for which we already
have a test at line 450.
2021-07-16 12:37:29 +00:00