Commit Graph

33 Commits

Author SHA1 Message Date
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
Sebastian Kaspari
63586a13b9 [components] Issue https://github.com/mozilla-mobile/android-components/issues/94: Toolbar: Create sub-component skeleton (DisplayToolbar / EditToolbar). 2018-05-02 13:10:35 -04:00
Christian Sadilek
5b5632d717 [components] Closes https://github.com/mozilla-mobile/android-components/issues/123: InlineAutocompleteEditText constructor requires non-null AttributeSet 2018-04-26 09:57:13 +02:00
Jeff Boek
808c18535c [components] For https://github.com/mozilla-mobile/android-components/issues/57 - Makes Domain.create public, fixes lint error 2018-04-17 17:04:34 -04:00
Jeff Boek
fad73b152b [components] For https://github.com/mozilla-mobile/android-components/issues/57 - Adds an optional text formatter to AutocompleteResult 2018-04-17 17:04:34 -04:00
Christian Sadilek
dfbc0debec [components] Issue https://github.com/mozilla-mobile/android-components/issues/28: Generate jacoco coverage reports for all components 2018-04-05 12:36:04 -07:00
Sebastian Kaspari
753376a11c [components] Issue https://github.com/mozilla-mobile/android-components/issues/37: Gradle: Centralize depedency version configuration and use "implementation" instead of "compileOnly". 2018-03-29 10:06:41 +02:00
Christian Sadilek
bbdf237f04 [components] Issue https://github.com/mozilla-mobile/android-components/issues/41: Add InlineAutocomplete UI component 2018-03-29 09:35:19 +02:00