Watch This Now!

Enabling auto correct feature

458 posts
Thanks Meter: 119
By josephpatrick, Senior Member on 7th February 2014, 03:35 AM
Post Reply Subscribe to Thread Email Thread
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, 9 views)
Last edited by josephpatrick; 7th February 2014 at 03:40 AM.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes