Commit graph

32625 commits

Author SHA1 Message Date
Tadashi G. Takaoka
ac88f3d845 Add theme aware key popup preview animation
Bug: 15678343
Change-Id: I26e4d292deab37724387cc9ebc03033fcd698c60
2014-09-02 18:45:23 +09:00
Tadashi G. Takaoka
3e9bbf1735 am f4383ed3: Fix missing Material light more keys\' background
* commit 'f4383ed3a27cd97da0d018716822e940dbc4c86f':
  Fix missing Material light more keys' background
2014-09-02 09:45:19 +00:00
Tadashi G. Takaoka
f4383ed3a2 Fix missing Material light more keys' background
Bug: 15782668
Change-Id: I8b59d8a4dabe03418e520c18d5d64e2d10f4cae2
2014-09-02 10:59:23 +09:00
Yohei Yukawa
446f53f9c0 am ee0d8077: Show the commit indicator only for word to be auto-corrected
* commit 'ee0d8077d604c9bdbdfd29675c1d28ea01b2c9bb':
  Show the commit indicator only for word to be auto-corrected
2014-08-30 18:42:18 +00:00
Yohei Yukawa
2412d9ae3c Use right arrow for the commit indicator
Change-Id: I5074acd2eec451f77b47378bf9a5f7a14c792ce6
2014-08-29 22:29:25 -07:00
Yohei Yukawa
ee0d8077d6 Show the commit indicator only for word to be auto-corrected
Change-Id: I61e25b960ae083857efc2704498a0761e0965ad3
2014-08-29 17:31:36 -07:00
Tadashi G. Takaoka
034a4a5a19 am c4710124: Merge "Fix the order of keys on more keys keyboard" into lmp-dev
* commit 'c47101248351727e24a584f9ee3e10d6921f0220':
  Fix the order of keys on more keys keyboard
2014-08-29 18:50:22 +00:00
Tadashi G. Takaoka
2fabd50df4 am f507d1fe: Support RTL layout in custom input style settings
* commit 'f507d1febb6742b009ae6acf1c70b657eba9b3a6':
  Support RTL layout in custom input style settings
2014-08-29 18:50:21 +00:00
Jean Chalard
3bd8eee3e8 am 4e28a6a8: Fix an IOOB exception
* commit '4e28a6a844d057abd4d078fba5b2d2e2cd11747b':
  Fix an IOOB exception
2014-08-29 18:49:47 +00:00
Tadashi G. Takaoka
727cd74072 am f2eadbb4: Clear keyboard cache when system locale is changed
* commit 'f2eadbb497a172f602e49226a7f891d9e9097760':
  Clear keyboard cache when system locale is changed
2014-08-29 18:47:59 +00:00
Tadashi G. Takaoka
c471012483 Merge "Fix the order of keys on more keys keyboard" into lmp-dev 2014-08-29 09:58:28 +00:00
Tadashi G. Takaoka
f507d1febb Support RTL layout in custom input style settings
Bug: 17322353
Change-Id: I3b211ab8729121271563a8a243558a58ee7847c2
2014-08-29 18:28:53 +09:00
Jean Chalard
4e28a6a844 Fix an IOOB exception
Bug: 17316001
Change-Id: Iaa2cfd30ebbe0d49e10a5c3a30336e06817d0a8b
2014-08-29 06:56:34 +00:00
Tadashi G. Takaoka
a9fc8622fe Fix the order of keys on more keys keyboard
This CL fixes the behavior of !autoColumnOrder!<n> flag in a more keys
specification. Formerly the <n> value specifies the maximum number of
column of more keys. With this CL, the <n> value specifies the exact
number of column of more keys.

Bug: 16603887
Change-Id: I2120620fa512ee30043bb146ad675a942a375129
2014-08-29 11:06:20 +09:00
Tadashi G. Takaoka
f2eadbb497 Clear keyboard cache when system locale is changed
Bug: 17310080
Change-Id: I2b388772f269f1e7610a5bd32de80793da2df16e
2014-08-28 22:50:07 +09:00
Jean Chalard
3ef26ac13b am 6bd267f4: Merge "Add new attributes to our notification" into lmp-dev
* commit '6bd267f4f7b23ba3ecf24a0b70829cc11dbe5832':
  Add new attributes to our notification
2014-08-28 09:40:50 +00:00
Tadashi G. Takaoka
aadb7a0e03 am 5f19606d: Add action label tests in other locale than subtype\'s
* commit '5f19606d54266e55bb065880c77a74b1d47a52c8':
  Add action label tests in other locale than subtype's
2014-08-28 09:25:26 +00:00
Jean Chalard
6bd267f4f7 Merge "Add new attributes to our notification" into lmp-dev 2014-08-28 09:22:19 +00:00
Tadashi G. Takaoka
5f19606d54 Add action label tests in other locale than subtype's
This unit test can catch the bug: 17310080.

Bug: 17310080
Change-Id: I931561217647fd558929b954ee1ef58c1d49df07
2014-08-28 17:36:26 +09:00
Jean Chalard
a2928484f6 Add new attributes to our notification
Bug: 17167221
Bug: 17128331
Change-Id: I6a045fd2398f40dbdc10c9d20993f7513e1f2cff
2014-08-28 07:47:07 +00:00
Yohei Yukawa
8d0d236394 am acce1aa5: Make sure to obtain the IC before requesting CursorAnchorInfo
* commit 'acce1aa59eac6816fe3ce1fcb014666fc71a40f1':
  Make sure to obtain the IC before requesting CursorAnchorInfo
2014-08-27 23:30:39 +00:00
Yohei Yukawa
acce1aa59e Make sure to obtain the IC before requesting CursorAnchorInfo
RichInputConnection#requestUpdateCursorAnchorInfo must make
sure to obtain the input connection before calling methods
of it.

BUG: 17299587
Change-Id: I8e0cd473a4cc32583cd47634c227d702f7c69c6c
2014-08-27 15:59:52 -07:00
Tadashi G. Takaoka
68a2a69ae3 am 37beaf15: Simplify onComputeInsets of LatinIME
* commit '37beaf1529a61228d6240736937789e5622b29ed':
  Simplify onComputeInsets of LatinIME
2014-08-27 10:36:05 +00:00
Tadashi G. Takaoka
37beaf1529 Simplify onComputeInsets of LatinIME
This CL expands SoftInputWindow to the entire screen. Thus a key
review backing view is eliminated and onComputeInsets() gets
simplified too.

Bug: 17212702
Bug: 10841052
Bug: 10541453
Change-Id: I2d859f4e4698c64cabe399000821f13bab729996
2014-08-27 19:20:38 +09:00
Yohei Yukawa
c925ca43a6 am 97681ebd: Set highlight color along with the commit indicator
* commit '97681ebdf16dd94b7ed0607342cc2750fb96a641':
  Set highlight color along with the commit indicator
2014-08-27 09:18:50 +00:00
Yohei Yukawa
8159336ba1 am 29200b0a: Set the text bgcolor only when CursorAnchorInfo is available
* commit '29200b0abe1d65aa2f9ddefd247ab91563d666f8':
  Set the text bgcolor only when CursorAnchorInfo is available
2014-08-27 09:18:49 +00:00
Yohei Yukawa
97681ebdf1 Set highlight color along with the commit indicator
With this CL, the text highlight color is applied
when the commit indicator is displayed.

Note that the underline is not rendered when the
background color is enabled. This is a known issue.

Change-Id: Ia19355e1303e3a10e8a7d69bc47c779feb70248a
2014-08-27 01:41:16 -07:00
Yohei Yukawa
29200b0abe Set the text bgcolor only when CursorAnchorInfo is available
When CursorAnchorInfo is unavailable, we shouldn't try to show
the commit indicator and set the text highlight color.

With this CL, RichInputConnection can be used to track if the
application responded that it does support CursorAnchorInfo or
not.  This result will be taken into consideration when
InputLogic needs to determine whether the commit indicator
should be displayed or not.

Change-Id: I945d70eeb02a7a5f3d9b22459b23d7028508910f
2014-08-27 01:30:45 -07:00
Yohei Yukawa
00d140caeb am a475c854: Introduce a mechanism to hide the indicator speculatively
* commit 'a475c85480b2bc2a8d036b4b1ea29f6a8e749ac5':
  Introduce a mechanism to hide the indicator speculatively
2014-08-27 07:31:42 +00:00
Yohei Yukawa
a475c85480 Introduce a mechanism to hide the indicator speculatively
This is an optional optimization to reduce the UI latency.

Imagine that the commit indicator is now displayed and the
composing text is being updated, it is highly likely that
the commit indicator will disappear unless the application
rejects the setComposingText request.

If we assume that the application will accept the new
composing text without any modifications, we can hide the
indicator without waiting for the arrival of new
CursorAnchorInfo event.

This optimization isn't dangerous because we can show the
indicator again when we receive new CursorAnchorInfo event
and the assumption is turned out to be invalid.

Change-Id: Id59c6607a1029782410611e768791af9984f14ac
2014-08-26 23:42:53 -07:00
Yohei Yukawa
0268f7368f am bea17c49: Introduce commit/add-to-dictionary indicators
* commit 'bea17c49ec23bf0f646cb548445c7756aa50d233':
  Introduce commit/add-to-dictionary indicators
2014-08-27 05:01:40 +00:00
Yohei Yukawa
bea17c49ec Introduce commit/add-to-dictionary indicators
This CL introduces commit/add-to-dictionary indicators.

Note that the text is not yet highlighted when the commit
indicator is displayed. It will be addressed in subsequent
CLs.

Change-Id: I7e9b0fcfdc0776a50a1d8cfb41ee0add813317dd
2014-08-26 21:20:27 -07:00
Jean Chalard
2a2d324eb6 am 8380f921: Fix a bug where the top prediction would disappear.
* commit '8380f921f7edaeea2033a1e967a14941400fe246':
  Fix a bug where the top prediction would disappear.
2014-08-26 12:25:59 +00:00
Jean Chalard
8380f921f7 Fix a bug where the top prediction would disappear.
This is because prediction can't be easily distinguished in
style. This fixes the bug by simulating the right members,
but some refactoring should be done to remove useless
booleans.

Bug: 17271923
Change-Id: Ib88f3fb95678021624e59535492926dd315d26fb
2014-08-26 20:35:59 +09:00
Yohei Yukawa
abf05cc0da am fdfe73ff: Merge "Use more descriptive names for some internal fields" into lmp-dev
* commit 'fdfe73ff1f4b8c9d7d8728baa322d70c3a74df99':
  Use more descriptive names for some internal fields
2014-08-25 10:07:25 +00:00
Yohei Yukawa
fdfe73ff1f Merge "Use more descriptive names for some internal fields" into lmp-dev 2014-08-25 09:50:59 +00:00
Yohei Yukawa
a61b7245b0 Use more descriptive names for some internal fields
This CL clarifies that delay parameters are specified with
milliseconds.

Change-Id: I401a60b8c09c2a04201af5b74babcdb091c07f4a
2014-08-25 02:28:01 -07:00
Tadashi G. Takaoka
c500700fae am 19dd34a0: Show view even when IME is explicitly shown with physical keyboard
* commit '19dd34a02320b7a368c4ad65398248ceca41b69e':
  Show view even when IME is explicitly shown with physical keyboard
2014-08-25 09:26:15 +00:00
Tadashi G. Takaoka
19dd34a023 Show view even when IME is explicitly shown with physical keyboard
Bug: 17242477
Bug: 13988700
Change-Id: I519c0481760a9aa93a5d9bee68e0f6a3a8fc4d9d
2014-08-25 16:28:44 +09:00
Tadashi G. Takaoka
4a782da382 am f145fff0: Merge "Fix NPE when pressing ALT key" into lmp-dev
* commit 'f145fff0855cedb83551021c7682e05e1783f5b2':
  Fix NPE when pressing ALT key
2014-08-25 07:11:12 +00:00
Tadashi G. Takaoka
f145fff085 Merge "Fix NPE when pressing ALT key" into lmp-dev 2014-08-25 06:52:36 +00:00
Tadashi G. Takaoka
ad1f880811 Fix NPE when pressing ALT key
Bug: 17203708
Change-Id: I4f203603496e9401dacba4db21372e3353916418
2014-08-25 15:08:27 +09:00
Yohei Yukawa
2d508203c6 am 8681287c: Fix build due to an illegal character
* commit '8681287cd65f9d96187aab0703121881c8eba6c6':
  Fix build due to an illegal character
2014-08-25 04:41:35 +00:00
Yohei Yukawa
0271608315 am 5eebaddc: Merge "Dismiss "Add to dictionary" hint with non-special char event" into lmp-dev
* commit '5eebaddccbdbd59669d658245eea6e8aca560fc6':
  Dismiss "Add to dictionary" hint with non-special char event
2014-08-25 04:25:01 +00:00
Yohei Yukawa
b65a1e46ce am 2c4cce8d: Merge "Introduce #shouldShowAddToDictionaryHint" into lmp-dev
* commit '2c4cce8d6c92dc4492e4376a2b3973d76a016fdd':
  Introduce #shouldShowAddToDictionaryHint
2014-08-25 04:25:00 +00:00
Yohei Yukawa
8681287cd6 Fix build due to an illegal character
Change-Id: I597ab26db70387b80ddcd7d51de6ae751380030d
2014-08-24 21:14:41 -07:00
Yohei Yukawa
5eebaddccb Merge "Dismiss "Add to dictionary" hint with non-special char event" into lmp-dev 2014-08-25 04:08:56 +00:00
Yohei Yukawa
2c4cce8d6c Merge "Introduce #shouldShowAddToDictionaryHint" into lmp-dev 2014-08-25 04:05:56 +00:00
Tadashi G. Takaoka
129af92713 am 5e7a6fe0: Merge "Fix the bottom row of tablet keyboard layout" into lmp-dev
* commit '5e7a6fe09824a5d1ba875bc5aaed183cb1a0bc27':
  Fix the bottom row of tablet keyboard layout
2014-08-25 04:02:07 +00:00
Yohei Yukawa
ebc1509039 Introduce #shouldShowAddToDictionaryHint
This is a groundwork for subsequent CLs where we need to
call this method from multiple places. This CL does not
change any existing behaviors.

Change-Id: Id8fa0360305d7383571edffab6752b2240367cf9
2014-08-24 20:59:30 -07:00