Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Enabling auto correct feature

OP josephpatrick

7th February 2014, 04:35 AM   |  #1  
OP Senior Member
Thanks Meter: 63
 
256 posts
Join Date:Joined: Jan 2012
More
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.

http://forum.xda-developers.com/show....php?t=2093588

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"

.prologue
.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
:goto_0
int-to-long v1, v0

return-wide v1

.line 510
switch_0
const/16 v0, 0xc8

.line 511
goto :goto_0

.line 508
switch_data_0
.packed-switch -0x7a
switch_0
.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 04:40 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes