mcarare
1070e28db0
Bug 1893120 - Run AC Robolectric tests on SDK 34 and adapt tests. r=android-reviewers,webcompat-reviewers,twisniewski,avirvara
...
Differential Revision: https://phabricator.services.mozilla.com/D209640
2024-05-14 13:00:48 +00:00
acseh
3f4b08c594
Backed out changeset 9976b7730dbd (bug 1893120) for causing lint failures CLOSED TREE
2024-05-14 12:57:36 +03:00
mcarare
4a11afeae1
Bug 1893120 - Run AC Robolectric tests on SDK 34 and adapt tests. r=android-reviewers,webcompat-reviewers,twisniewski,avirvara
...
Differential Revision: https://phabricator.services.mozilla.com/D209640
2024-05-14 08:02:38 +00:00
Ryan VanderMeulen
3302eb5970
Bug 1888789 - Update Robolectric to version 4.12.1. r=geckoview-reviewers,android-reviewers,mcarare,tthibaud
...
Differential Revision: https://phabricator.services.mozilla.com/D207598
2024-04-17 12:49:02 +00:00
jackyzy823
d007ecc95e
Bug 1888378 - Commit url on numpad ENTER too. r=android-reviewers,mcarare
...
Differential Revision: https://phabricator.services.mozilla.com/D206002
2024-04-16 06:45:22 +00:00
Rocka
a1bc1f0138
ui-autocomplete: correct InputConnection behavior
...
- override deleteSurroundingTextInCodePoints() as well
- call restartInput() to interrupt setComposingText
2023-10-05 22:02:55 +00:00
mcarare
063c553913
Bug 1849833 - Replace deprecated compileSdkVersion.
...
This is replaced by defaultConfig compileSdk.
2023-09-11 06:36:20 +00:00
MatthewTighe
c87183c8b5
Bug 1843168 - Expose Mockito through test support component
2023-07-24 18:02:09 +00:00
Geoff Brown
6561b2de2b
Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues
2023-04-12 14:04:29 +00:00
rahulsainani
723296301d
Bug 1817525 - Voice input now appends query in EditToolbar
2023-03-13 15:29:55 +00:00
Ryan VanderMeulen
0e5e70291c
Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt build.gradle
2023-03-07 00:12:18 +00:00
mcarare
1f589a2e0b
Bug 1802817 - Set namespace via DSL in gradle build files.
...
See https://developer.android.com/studio/build/configure-app-module#set-namespace
and https://issuetracker.google.com/issues/172361895
2023-03-02 17:13:09 +00:00
mcarare
922b5f6643
Bug 1802817 - Rename AC Dependencies to ComponentsDependencies.
...
This change is needed in order to avoid clashes with Dependencies class introduced
in Gradle from 7.6 version.
2023-03-02 17:13:09 +00:00
Mugurell
2d2404905d
Bug 1800268 - Add support for refreshing autocomplete when providers change
2023-01-31 11:15:37 +00:00
Alexander Gramiak
bcc43f0530
Bug 1799230 - Use Non-Transitive R Classes
...
According to Android documentation: "This leads to faster builds and
the corresponding benefits of compilation avoidance."
2022-11-17 18:23:01 +00:00
Mihai Adrian Carare
e087b524a6
Bug 1796353 - Build with compileSdkVersion for Android 13 / API 33. ( https://github.com/mozilla-mobile/firefox-android/pull/62 )
...
* Bug 1796353 - Build with compileSdkVersion for Android 13 / API 33.
* Bug 1796353 - Update method signature for View.AccessibilityDelegate.
* Bug 1796353 - Handle AccessibilityNodeInfo.CollectionInfo.obtain deprecation.
* Bug 1796353 - Update method signature for View.OnAttachStateChangeListener.
* Bug 1796353 - Handle getParcelableExtra(String) deprecation.
* Bug 1796353 - Handle getParcelable(String) deprecation.
* Bug 1796353 - Handle getParcelableArrayListExtra(String) deprecation.
* Bug 1796353 - Move URLStringUtils to ktx package.
This is needed to avoid circular dependencies for some needed changes.
* Bug 1796353 - Suppress deprecation for get(String).
* Bug 1796353 - Replace removed method setAppCacheEnabled.
* Bug 1796353 - Handle PackageManager methods deprecations.
* Bug 1796353 - Handle getSerializable(String) deprecation.
* Bug 1796353 - Handle stopForeground deprecation.
* Bug 1796353 - Update method signature for GestureDetector.SimpleOnGestureListener.
* Bug 1796353 - Handle AccessibilityEvent.obtain deprecation.
* Bug 1796353 - Handle getParcelableArrayList(String) deprecation.
* Bug 1796353 - Handle getParcelableArray(String) deprecation.
* Bug 1796353 - Handle getSerializableExtra(String) deprecation.
* Bug 1796353 - Handle readParcelable(classLoader) deprecation.
* Bug 1796353 - Handle FillResponse.Builder setAuthentication deprecation.
* Bug 1796353 - Handle Dataset.Builder setValue deprecation.
* Bug 1796353 - Suppress get(String) deprecation.
We still need to use this method because we do not know the type beforehand.
* Bug 1796353 - Handle onBackPressed() deprecation.
* Bug 1796353 - Suppress queryBroadcastReceivers deprecation.
* Bug 1796353 - Suppress package manager methods deprecation.
* Bug 1796353 - Catch and report exceptions when handling touch event detection.
* Bug 1796353 - Suppress deprecation for getPackageInfo used in tests with SDK 28.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-11-16 00:35:40 -05:00
Mugurell
08f04ccf13
Bug 1794933 - Remove autocomplete when not applicable anymore
...
Immediately after the user modified it's input text to something that doesn't
match the current autocompleted text the autocompletion will be removed.
2022-11-03 07:20:43 +00:00
Gabriel Luong
d9d783b698
[components] Issue https://github.com/mozilla-mobile/android-components/issues/12939 : Address all ktlint issues
2022-10-17 17:07:40 -04:00
Gabriel Luong
65626ccd3a
[components] Issue https://github.com/mozilla-mobile/android-components/issues/11864 : Enable UnusedPrivateMember rule for detekt
2022-03-24 18:47:39 +00:00
Michael Comella
57c36cc8c2
[components] For https://github.com/mozilla-mobile/fenix/issues/22046 : add marker for onTextChanged in InlineAutocompleteEditText.
...
This will help us understand 1) when exactly the user types and
2) what happens immediately after that.
Here is a (debuggable) profile with the change: https://share.firefox.dev/3B51Vst
2021-10-23 00:01:11 +00:00
Sebastian Kaspari
ce323400dd
[components] Run ktlintFormat to fix new ktlint errors.
2021-07-28 12:03:23 +00:00
Michael Debertol
02a7e28b16
[components] For https://github.com/mozilla-mobile/android-components/issues/8247 : Invoke onTextChangeListener when committing an inline suggestion
2021-06-21 15:58:22 +00:00
codrut.topliceanu
95cf788311
[components] For https://github.com/mozilla-mobile/android-components/issues/9774 - Removes beforeTextChangedIndex, cause for backspace issues
...
Initially added to fix https://github.com/mozilla-mobile/android-components/issues/6276 it seems beforeTextChangedIndex is no longer necessary and moreover it causes https://github.com/mozilla-mobile/fenix/issues/12525 when using keyboards with autocorrect enabled, as it counts the index start for the last group of letters that form an autocorrect "text", such as a path from url (i.e. "android-components" from https://github.com/mozilla-mobile/android-components would make beforeTextChangedIndex == 33).
2021-03-02 22:20:37 +00:00
Mugurell
e781ad663a
[components] For https://github.com/mozilla-mobile/android-components/issues/9338 - Control what InlineAutocompleteEditText pastes
...
Being an EditText InlineAutocompleteEditText offers a framework floating menu
for the most common text options.
Ensure we have more control over what the user pastes from the system clipboard
2021-01-07 14:34:45 +00:00
Michael Debertol
d4595ad67e
[components] For https://github.com/mozilla-mobile/android-components/issues/8245 : Use settingAutoComplete to disable autocomplete
2020-08-26 18:38:45 +02:00
codrut.topliceanu
403348d5c2
[components] For https://github.com/mozilla-mobile/android-components/issues/7043 - onSelectionChanged won't trigger autocomplete suggestions
2020-05-21 15:09:39 +03:00
Jonathan Almeida
b86fa6dfb5
[components] Close https://github.com/mozilla-mobile/android-components/issues/6601 : Update targetSdkVersion to 29
2020-04-28 03:16:54 -04:00
codrut.topliceanu
12713be0d7
[components] For https://github.com/mozilla-mobile/android-components/issues/6276 - Fix for autocomplete add or remove logic
...
Added test for specific autocomplete case.
Had to remove an assert for removing a block of text from input as it was no longer relevant.
2020-03-18 14:12:05 +02:00
codrut.topliceanu
16c67e02b5
[components] For https://github.com/mozilla-mobile/android-components/issues/6237 - Add tests for InlineAutocompleteEditText's TextChangeListener
2020-03-11 16:10:47 +02:00
codrut.topliceanu
88f1cb42c9
[components] For https://github.com/mozilla-mobile/android-components/issues/6202 - Autocomplete generation on first key press
2020-03-09 18:11:57 +02:00
MozLando
ddd1ca1d34
[components] Merge https://github.com/mozilla-mobile/android-components/pull/5497
...
5497: Pasting URL to URL bar without formatting (Android M and higher) r=csadilek a=marcinwiacek
Partial fix for pasting URL to URL bar (works for Android M and higher).
Before change: text is added with rich formatting
After change: text is added without rich formatting
Closes https://github.com/mozilla-mobile/android-components/issues/5512 : Strip formatting when pasting text in url bar
Co-authored-by: Marcin Wiącek <marcin@mwiacek.com >
2020-01-09 19:35:31 +00:00
Marcin Wiącek
a7b9443668
[components] Pasting URL to URL bar without formatting (Android M and higher)
2020-01-09 01:33:47 +01:00
Roger Yang
35395af32d
[components] Closes https://github.com/mozilla-mobile/android-components/issues/5505 : Fix Awesomebar text length calculation
2020-01-08 14:14:29 -05:00
Severin Rudie
d4648c1a57
[components] For https://github.com/mozilla-mobile/android-components/issues/5168 : fix autocomplete on text block deletion
2019-11-26 15:39:30 -08:00
Tiger Oakes
5377ef2f1a
[components] Closes https://github.com/mozilla-mobile/android-components/issues/4004 - Increase limit for LongMethod rule
2019-08-02 13:34:17 -04:00
Denys M
1b0ca990fc
[components] For https://github.com/mozilla-mobile/android-components/issues/3473 . Eliminate tech dept from detekt baseline.
2019-06-20 13:20:26 -07:00
Denys M
1f8fc3fa5b
[components] For https://github.com/mozilla-mobile/android-components/issues/1481 . Enable unit test binary resources globally.
...
Excluded few modules.
2019-06-13 09:29:52 +02:00
Denys M
c60f0ada4d
[components] For https://github.com/mozilla-mobile/android-components/issues/1481 . Use androidx runner in ui-autocomplete.
2019-06-11 10:26:52 -04:00
Denys M
869742d36a
[components] For https://github.com/mozilla-mobile/android-components/issues/2346 . Enable kotlin warningsAsErrors for ui-autocomplete module.
2019-05-22 09:04:00 -04:00
Sawyer Blatz
b9bb0edbd9
[components] Fixes https://github.com/mozilla-mobile/android-components/issues/2769 : Allows disabling of autocomplete text
2019-05-02 16:54:07 +02:00
Sebastian Kaspari
5c54ec453d
[components] Closes https://github.com/mozilla-mobile/android-components/issues/842 : Migrate from support libraries to AndroidX.
2019-05-02 16:08:55 +02:00
Sebastian Kaspari
75a3e8b306
[components] Issue https://github.com/mozilla-mobile/android-components/issues/2396 : Update EditToolbarTest and add test for new Fact metadata.
2019-03-28 20:00:55 +01:00
Sawyer Blatz
a994f48848
[components] Closes https://github.com/mozilla-mobile/android-components/issues/2255 : Adds onCancelEditing to onEditListener in BrowserToolbar
2019-03-12 14:26:06 -07:00
Sebastian Kaspari
98e96dee08
[components] Closes https://github.com/mozilla-mobile/android-components/issues/2023 : browser-toolbar: Allow theming of autocomplete suggestions foreground/background colors.
2019-02-15 16:25:37 +01:00
Grisha Kruglov
8260324a9b
[components] Perform browser-toolbar autocompletion off the UI thread
...
At this point in the stack, we're not in control over what our
autocomplete providers are, what actions they'll do in order to
field our queries, etc. For example, some providers may hit the disk
and perform expensive DB queries internally. Some may even hit the
network, in theory!
In order to keep things perceptively speedy, let's run the actual work
off the main thread. This patch sets up a new pool thread to process
autocomplete requests. More than one thread is selected so that we maintain
liveliness during quick user input. Background tasks are cancelled as new
queries come in, and stale results are discarded.
2019-02-08 12:22:13 -08:00
Mitchell Hentges
8fd19cdf3a
[components] Moves description to be part of project.ext
2019-01-11 10:08:32 +01:00
Mitchell Hentges
3ee4d96a84
[components] Reads componentsVersion from .buildconfig.yml
2019-01-11 10:08:32 +01:00
Sebastian Kaspari
9f20b8d995
[components] Issue https://github.com/mozilla-mobile/android-components/issues/1489 : InlineAutocompleteEditText: Remove unused import.
2019-01-08 10:24:59 +01:00
Michael Comella
6ddd073a35
[components] Issue https://github.com/mozilla-mobile/android-components/issues/1489 : Only restartInput when on non-Echo devices.
2019-01-08 10:24:58 +01:00
Arturo Mejia
d754d7a5a8
[components] Closes https://github.com/mozilla-mobile/android-components/issues/1489 : Fix backspace issue when suggestion strip is off.
2019-01-08 10:24:58 +01:00