Default Enabling auto correct feature

hi, the post for Note 2 seems to work fine for S2 as well. If I type "Thw", it corrects it to "The". However, it does not always work for all words. I normally use continous input and hence not really useful to me but it may be useful for some.

For auto-ocrrect, I simply replaced the entire function ".method private processWordSeparator(I[I)V" in the .smali file 'SwiftkeyQwertyLatinInputModule' for S2 (.method to .end) [see attached file for the function]. This code was taken from the apk file attached to the above post by "eclipxe"

For long press delay, I simply changed to the following code.

---.method private getLongpressTimoutDelay(I)J
.locals 3
.parameter "keyCode"

.line 507
const/16 v0, 0xc8

.line 508
.local v0, delay:I
packed-switch p1, switch_data_0

.line 513
const/16 v0, 0xc8

.line 516
int-to-long v1, v0

return-wide v1

.line 510
const/16 v0, 0xc8

.line 511
goto :goto_0

.line 508
.packed-switch -0x7a
.end packed-switch
.end method


Thanks to "eclipxe" for the original post for Note 2.
Attached Files
File Type: txt code.txt - [Click for QR Code] (10.5 KB, 8 views)