Commit Graph

57 Commits

Author SHA1 Message Date
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
Grisha Kruglov
128355b979 [components] Conceptualize Toolbar Autocompletion 2018-11-26 18:51:31 +01:00
ali-abdullah
89f3263d12 [components] included buildSrc in ktlint and detekt checks 2018-11-16 12:40:04 +01:00
Sebastian Kaspari
4fcc11ef9b [components] Issue https://github.com/mozilla-mobile/android-components/issues/404: Build with and target SDK 28 (+ update support libraries)
* Build with and target SDK 28.
* Use Robolectric 4.0-alpha-3.
* Update support libraries to 28.0.0.
* .travis.yml: Update platform version.
2018-11-15 18:12:42 +01:00
Sebastian Kaspari
53b3d1a71f [components] Update repository information in README files. 2018-10-25 15:37:46 +02:00
Vadim Semenov
0af6566645 [components] Wrap if-statements in curly brackets 2018-10-24 11:52:48 +02:00
Sebastian Kaspari
9e17b84339 [components] Simplify build configuration. 2018-10-24 10:21:12 +02:00
Johan Lorenzo
0ca864a1bf [components] Stop Bintray. Update {group,artifact}Ids. Remove massage task 2018-10-22 14:35:51 +02:00
Marco
6e4f04af78 [components] Closes https://github.com/mozilla-mobile/android-components/issues/47: Remove test prefix from method names 2018-10-10 15:59:39 -04:00
Michael Comella
b764eccbe1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/911 - review: Remove unused import for ktlint. 2018-10-03 09:47:37 +02:00
Michael Comella
c2b6b684ec [components] Closes https://github.com/mozilla-mobile/android-components/issues/911 - ui-autocomplete: Do not restart input method in deleteSurroundingText.
This fix is speculative. There seems to be theoretical reason we need
to restart the input method and I think it's creating a race condition
that causes the keyboard to stop working on some devices. In practice,
removing this call fixes the bug but otherwise doesn't seem to make a
difference in autocomplete behavior on device or in the emulator.
2018-10-03 09:47:37 +02:00
Wajahat Karim
ed0729232c [components] Closes https://github.com/mozilla-mobile/android-components/issues/922: Update READMEs to point to maven.mozilla.org and use new artifact names. 2018-10-03 09:20:43 +02:00
Sebastian Kaspari
95cbd85360 [components] Revert "Issue https://github.com/mozilla-mobile/android-components/issues/404: Build with and target SDK 28 (+ update support libraries)"
This reverts commit c5038c7fab.
2018-09-26 15:39:38 +02:00
Sebastian Kaspari
68f864a763 [components] Issue https://github.com/mozilla-mobile/android-components/issues/404: Build with and target SDK 28 (+ update support libraries)
* Build with and target SDK 28.
* Use Robolectric 4.0-alpha-3.
* Update support libraries to 28.0.0.
* .travis.yml: Update platform version.
2018-09-25 10:05:55 +02:00
Sebastian Kaspari
946410ca86 [components] Configure dependencies from buildSrc Kotlin code. 2018-08-21 11:16:21 -04:00
Severin Rudie
1bf6489ba4 [components] Closes https://github.com/mozilla-mobile/android-components/issues/619: Fixes keyboard desync in InlineAutocompletedEditText 2018-08-15 18:58:54 -04:00
Alexander Perfilyev
cb983b6172 [components] Closes https://github.com/mozilla-mobile/android-components/issues/348: Don't set composing region after removing autocomplete
Seems like composing span is applied anyway.

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2018-07-20 10:52:33 +02:00
Christian Sadilek
42147d411f [components] Closes https://github.com/mozilla-mobile/android-components/issues/345: onAutocomplete method name is unintuitive 2018-07-05 17:30:45 +02:00
Angelo Rüggeberg
c829fade93 [components] Fixed remaining lint issues 2018-07-03 14:29:55 -04:00
Sebastian Kaspari
b58dd3798a [components] Issue https://github.com/mozilla-mobile/android-components/issues/232: Add READMEs for every component and link them from the root README. 2018-05-28 17:33:12 +02:00
Christian Sadilek
5e51a28d4e [components] Closes https://github.com/mozilla-mobile/android-components/issues/120: Generate and publish JavaDocs 2018-05-14 09:46:20 +02:00