- Feb 20, 2014
-
-
Jean Chalard authored
The heuristic in RichInputConnection makes little sense when textLength > mExpectedSelStart but we have more than 1024 characters of text. If there are that many, it's about 100% sure that 1024 is not the correct cursor position. With no good guess, we'll just continue trusting the app, even though we know it's lying : at least it will make the problem visible to the app author. Also, there have been a lot of confusion about initialSelStart and initialSelEnd. The keyboard should log them so that it helps us and editor authors debug more easily these common problems. Issue #65170 in AOSP and Bug: 12772035 Change-Id: I6665a16c9f2832d33ee323f033bb38bcc092a3b4
-
Jean Chalard authored
When the cursor is moved by the user, the RichInputConnection is told about it. However, to work around a framework bug, it also looks at how many characters are in the buffer before the cursor, and if that's more than the value it's been passed, it deduces that's a framework bug and there are at least as many characters as seen before the cursor, so it puts the expected cursor position there. When you move the cursor, TextView calls onUpdateSelection, and when you move it fast, you'll get rapid-fire calls to onUpdateSelection. This is fine, the RIC is equipped to deal with that. However, these calls take some time to make it to the IME. In this instance, when the first call gets through and the IME calls TextView (synchronously) for text before the cursor, the cursor has already moved in the app, and TextView returns more characters than the cursor position was declared to be in this instance, so the RIC sets that as the expected cursor position. Sure enough, a split second later, the second call to onUpdateSelection arrives, with the new cursor position set where the RIC had found it too early. The RIC takes that as an "expected" cursor move, and the input does not get reset. Luckily, we have a way out. As far as we know, the framework bug only manifests itself upon rotation, which means we should only have to adjust for it in onStartInputView. Doing it in onUpdateSelection is too zealous (and probably too distrustful of the app to send the correct cursor positions). So we should just take care of the rotation case (by calling tryFixLyingCursorPosition in onStartInputView) and remove the compensating code in resetCachesUponCursorMoves. Bug: 12982502 Change-Id: Ic3c1408a1ec45deaea63b01d98376a79ae567d77
-
Keisuke Kuroyanagi authored
Bug: 11122480 Change-Id: I79a4a73ff09a2d34d4ca094d705e901fb4bc855c
-
Tadashi G. Takaoka authored
This CL also reset the notice version to 1. This CL must be checked in together with Iea8d9ff038. Change-Id: I838f7b5b295388d64d6aba90f50b06654eba16e5
-
Keisuke Kuroyanagi authored
Bug: 13067743 Change-Id: I6fc68b5151430a5ab51777f4c381e20f5a657924
-
- Feb 19, 2014
-
-
Keisuke Kuroyanagi authored
Wrongly removed in I1f50cb137b6054dc9. Bug: 13067743 Change-Id: I27cd221cb7f6e403c3fc128d65d14dbf628b6f55
-
Keisuke Kuroyanagi authored
Bug: 13067743 Change-Id: I1f50cb137b6054dc9442237586b70fc0aa2bf427
-
Tadashi G. Takaoka authored
AlertDialog.Builder.setOnDismissListener is supported from API 17. Bug: 10587358 Change-Id: Ie8ce8e283b803f7f6bb58ced446e676339f980eb
-
Tadashi G. Takaoka authored
This change must be checked in together with Ifde70b1d3b. Bug: 10587358 Change-Id: I9dc48f9d521e0e6f6269e4f184389ba805f3053f
-
Keisuke Kuroyanagi authored
Change-Id: Icb2821f61c4203254b7d573cad5ce71fbf0ed841
-
- Feb 18, 2014
-
-
Jean Chalard authored
Less code, less chance of stuff escaping, and a bit of a clarification. Yay. Change-Id: I3193fd8ad7ac28195260cbc231c4e498a63a460c
-
Ken Wakasa authored
Change-Id: Ia2d04ab992f5a0cc736150b2691b2f8ae8f0955d
-
Ken Wakasa authored
Change-Id: I6c755565ba7689357d02d26cc0e92a93031953e8
-
Tadashi G. Takaoka authored
Bug: 13058751 Change-Id: Iba49e86b90d595473d91753827d499e551dad45c
-
- Feb 17, 2014
-
-
Tadashi G. Takaoka authored
Bug: 13060852 Change-Id: I463fdf3d51cacf99693fcde2998ea751046d1cc5
-
Tadashi G. Takaoka authored
Bug: 10587358 Change-Id: Ieff7960e5e2b8609fddeb173af578a5d9b2c4d98
-
Tadashi G. Takaoka authored
This CL also - removes icons on important notice title. - changes the "Personalized suggestions" summary text. This change must be checked in together with Id115d89ba9. Bug: 10587358 Change-Id: I52ff26fa8ae12445e9014ba08253f69e1be609f4
-
- Feb 14, 2014
-
-
Tadashi G. Takaoka authored
This change must be checked in together with I366c477516. Bug: 12640318 Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
-
- Feb 12, 2014
-
-
Jean Chalard authored
Bug: 10315296 Change-Id: Ieb020a23886514b3ba97611d8a6001f32b322f63
-
Jean Chalard authored
Bug: 10587358 Change-Id: Ia060a9ca9dfc2e7fe0750536a9fea3b9cc5900c4
-
Tadashi G. Takaoka authored
Bug: 10587358 Change-Id: I7415a6f33e6b5542718164fea1555095d23233e5
-
- Feb 10, 2014
-
-
Tadashi G. Takaoka authored
Bug: 10587358 Change-Id: I1af3faa59afb2fc4cb90176acff1c2b0b1ba369c
-
- Feb 06, 2014
-
-
Jean Chalard authored
Bug: 12913520 Change-Id: Ie15f97d90c142c51089280252b35b5ad1d226e19
-
Keisuke Kuroyanagi authored
Change-Id: I83a05a8369c2fe2fa7522f18eb00983a0b10dc19
-
- Feb 05, 2014
-
-
Jean Chalard authored
Bug: 8636060 Change-Id: Ib12eacc836e8d39c4165c97a2a287f32f6bf5405
-
Jean Chalard authored
Access the suggestion strip through the interface instead. Bug: 8636060 Change-Id: Ia8bd705c230f943e309d677ef683b1a2cbe68036
-
Jean Chalard authored
Bug: 8636060 Change-Id: I603af6bcdaa31f64aaaf916784720a133388c737
-
- Feb 04, 2014
-
-
Keisuke Kuroyanagi authored
Bug: 11736680 Bug: 12810574 Change-Id: I1f797b5ac6acf94b40d9698d4535e8f5da2bfb17
-
- Feb 03, 2014
-
-
Tadashi G. Takaoka authored
Bug: 10587358 Change-Id: Ic90e5825200a1d424aac4ba263b252187a203241
-
Tadashi G. Takaoka authored
Bug: 10587358 Change-Id: I3b4282a1bb183aa901110a4a2fc1b6ed72818aae
-
Jean Chalard authored
Bug: 12865205 Change-Id: If17a390c445d0820325a9b16cc4f2f27a361187a
-
- Jan 31, 2014
-
-
Tadashi G. Takaoka authored
This change is a groundwork to show important notice. Bug: 10587358 Change-Id: I80aa70d30e2a529b37798f0df2183b41df3ac38a
-
- Jan 30, 2014
-
-
Tadashi G. Takaoka authored
Bug: 12811156 Change-Id: I928daf17297ec5c526720850d6203cb9af0496ac
-
- Jan 29, 2014
-
-
Jean Chalard authored
Bug: 8636060 Change-Id: Ic8e0225206358680aa0de421f17ab443c888036d
-
Jean Chalard authored
Bug: 8636060 Change-Id: I9e817bb9622c84544a5ca8708e5c1fccad1ed447
-
Jean Chalard authored
Bug: 8636060 Change-Id: I97a371fe0c6227eb0f03d3e391a33726e6280322
-
Jean Chalard authored
This helps managing the cases where the typed word is not in the suggestions. This happens during recorrection. Bug: 8636060 Change-Id: I6784feb793cae96272a7f1d123a0e3bbb8f03143
-
- Jan 28, 2014
-
-
Jean Chalard authored
Bug: 8636060 Change-Id: Ia54afdfab9124aa5c35699e357e63eae66a7557f
-
Jean Chalard authored
Bug: 8636060 Change-Id: Ic9c12fc6970987b0e1912e8ae85bed55260d66b5
-
Jean Chalard authored
Bug: 8636060 Change-Id: I344ed59f5f55b412880fc6dc70205eecb1e79961
-