Skip to content
Snippets Groups Projects
  1. Sep 20, 2013
    • Jean Chalard's avatar
      Fix a bug where null would be converted to "null" · 8f02f1a1
      Jean Chalard authored
      It's unclear what the concrete effects of this are, but they are not
      very strong. This only happens in corner cases, when the input
      connection is not active - while rotating, for example.
      
      Change-Id: I1d22459a6e94a8ecccb53cfcbc2d301b1d502204
      8f02f1a1
  2. Aug 22, 2013
    • Kurt Partridge's avatar
      Fix cursor state bug · 6c94a18a
      Kurt Partridge authored
      InputConnection#finishComposingText() should not change the position of the cursor,
      so neither should it change its internal expectation of the cursor's position.
      
      Change-Id: Ib3d39a5743cd1e8e356f438b04a5c30279430b2a
      6c94a18a
  3. Aug 08, 2013
  4. Jul 31, 2013
  5. Jul 26, 2013
  6. Jul 22, 2013
  7. Jul 02, 2013
  8. Jul 01, 2013
  9. Jun 26, 2013
    • Jean Chalard's avatar
      Ignore spans that are not the right size. · 2f7f6257
      Jean Chalard authored
      Bug: 8839763
      Bug: 8862327
      Change-Id: I5d49c86edcbc0fc1b2b147856437cfbadd678377
      2f7f6257
    • Jean Chalard's avatar
      Fixing follow-up to I548d899b · 7fcf304c
      Jean Chalard authored
      I548d899b introduced a new method to fix a sync miss between
      the cursor position and the cached cursor position, but did not
      take into account that it should also update the cached text
      before and after the cursor in this case and that there was
      already a method for doing this.
      
      Change-Id: I31bd741893207c822827304e77791b1159774e1a
      7fcf304c
  10. Jun 25, 2013
  11. Jun 24, 2013
  12. Jun 21, 2013
    • Jean Chalard's avatar
      Fix a bug in the cached cursor pos, and simplify selection handling · e5dee0af
      Jean Chalard authored
      The documentation for setComposingRegion states explicitly
      that it does not move the cursor. This is just a bug.
      This does not have any ill effects right now, but it will have
      in later changes if not fixed.
      
      As for the selection handling, the specific test that this code
      removes used to serve a purpose, but it does not any more because
      the code using the value has been much sanitized. Now the variable
      can just take the obvious value, and become so self-explanatory
      that the comments are unnecessary.
      
      Change-Id: I548d899b38776bd3ab5f5361aab0d89d98f12e73
      e5dee0af
  13. May 08, 2013
    • Jean Chalard's avatar
      Optimizations and safeguards. · 9f9cc032
      Jean Chalard authored
      - Don't call finishComposingText when useless.
      - Add safeguards against calling setComposingRegion when the
        data returned by the editor is inconsistent.
      - Cancel pending recorrection messages when new messages arrive.
      
      Bug: 8842941
      Bug: 8845001
      Change-Id: I939701033cf5c2bbd85871ecf83e329021ddeb91
      9f9cc032
  14. Apr 16, 2013
    • Jean Chalard's avatar
      Don't insert automatic spaces when text looks like a URL · 73ec85b8
      Jean Chalard authored
      This is about as ad-hoc as it gets, but then again, what we want
      is probably as ad-hoc as it gets.
      All URL boxes I know of double as search bars, and not adding
      automatic spaces there sucks (e.g. in Chrome URL bar).
      And in other boxes actually you don't want to add a space if
      it looks like a URL. QSB isn't even a search box, and it behaves
      like this.
      
      So I think this is actually the right answer to the problem.
      
      Bug: 7062925
      Change-Id: Ib09472b34644fd5bf2dc84bb97cedeeba28bcd02
      73ec85b8
  15. Apr 15, 2013
    • Jean Chalard's avatar
      Have Latin IME re-capitalize a selected string · 2995abe7
      Jean Chalard authored
      Upon pressing Shift, if there is currently a selected string, have
      Latin IME change its capitalization.
      This does not yet have the keyboard mode follow the mode - the change
      is complicated enough as is.
      
      Bug: 7657025
      Change-Id: I54fe8485f44e04efd72c71ac9feee5ce21ba06f2
      2995abe7
  16. Apr 12, 2013
    • Jean Chalard's avatar
      Fix a bug with bad application completions · 02ce3dc2
      Jean Chalard authored
      Bug: 8561056
      Change-Id: I91fb0ac76dabfc841bafc0e2c0ea9f63e6f604f9
      02ce3dc2
    • Jean Chalard's avatar
      Restart suggestions when the cursor moves. · 6a114fa7
      Jean Chalard authored
      This uses the old suggestions. It does not try to recompute
      new suggestions if there are no old suggestions yet: this is
      coming in a later change.
      If there are no suggestions, this shows the word itself
      as a suggestion.
      
      Bug: 8084810
      Change-Id: I4c2e25df0ff3673be1825f57a0c19a9d23d47a48
      6a114fa7
  17. Mar 29, 2013
    • Jean Chalard's avatar
      Fix an NPE · 740da0d8
      Jean Chalard authored
      Also remove an unused method and make 2 private variables
      final.
      
      Bug: 8461093
      Change-Id: I676d93fda28e82eb5a6978f2e7ad5a0add2cbecf
      740da0d8
  18. Mar 18, 2013
  19. Feb 12, 2013
  20. Jan 21, 2013
  21. Jan 17, 2013
  22. Jan 10, 2013
  23. Jan 08, 2013
  24. Jan 07, 2013
    • Ken Wakasa's avatar
      Small code cleanups · b6ca3544
      Ken Wakasa authored
      Multi-project commit with I249d5fbe
      
      Change-Id: Ia28c4e970992aa1299a30e604eaa5d096655c3a5
      b6ca3544
  25. Dec 27, 2012
    • Jean Chalard's avatar
      Rename some confusing variables · 0abc4821
      Jean Chalard authored
      Change-Id: Ib0de800599ae7f12c86270a627616d5b52366414
      0abc4821
    • Jean Chalard's avatar
      Fix an old bug in getting a word from the connected view. · 5bde3a61
      Jean Chalard authored
      In this test, it's impossible that start < 0 so the test is useless.
      I'm not sure what the cursor test was for, but it's very old code, and
      it seems the assumption was either misled or doesn't hold any more:
      testing for the absolute cursor position against the length of the
      word against the cursor makes no sense.
      
      The net result of this was that when the cursor index got large
      enough, resuming suggestion would not work any more.
      
      Bug: 7586467
      Change-Id: I3462082374fe9579bec7698f4d424de6ff5f2ded
      5bde3a61
  26. Dec 23, 2012
  27. Dec 17, 2012
  28. Dec 14, 2012
    • Jean Chalard's avatar
      Use the amended user dictionary word for insertion · 18d688c9
      Jean Chalard authored
      When the user edits a word before adding it to the user
      dictionary, the keyboard should replace whatever was
      committed before with the amended version.
      
      Bug: 7725834
      Change-Id: I1a417be6c5a86d6a96bc2c76aca314ad8f1202a9
      18d688c9
  29. Dec 06, 2012
  30. Nov 14, 2012
    • Jean Chalard's avatar
      Fix a bug with some text fields · 00c0010c
      Jean Chalard authored
      Not sure when this happens exactly, but it is possible that
      InputConnection#getTextBeforeCursor returns null. This
      happens for example upon rotating the screen with the
      composing field empty in Gmail.
      In this case, StringBuilder#append will convert the null
      pointer into the string "null", which is sure better than a
      crash, but can have a number of bad side-effects, like
      auto-caps not working.
      
      Bug: 7533034
      Change-Id: Ia1cfab432c13a12ff1c2f013c59bac05a587f553
      00c0010c
  31. Nov 06, 2012
Loading