Op here, glad this is still working! I should get a GS4 soon and will make a more generic version for all Galaxy variants
Sent from my SPH-L710 using xda premium
Any chance for you to make a MC2 version? I can provide the apk
Op here, glad this is still working! I should get a GS4 soon and will make a more generic version for all Galaxy variants
Sent from my SPH-L710 using xda premium
1. To change the long press delay
In PointerTracker:
Code:
###################################################
# Change the long press delay to 200ms from 500ms #
###################################################
8
Any chance for you to make a MC2 version? I can provide the apk
Trying to learn a little and make these changes on my own. Can't seem to find PointerTracker??
I did find the SwiftkeyQwertyLatinInputModule at this location
smali>com>diotek>ime>framework>input>SwiftkeyQwertyLatinInputModule.smali
thanks for the help
---------- Post added at 03:52 PM ---------- Previous post was at 03:50 PM ----------
If i can figure out where the PointerTracker.smali is I can post up the MC2 version I am editing now.
I pretty sure I found the PointerTracker.smali but there are some differences in the code compared to what was given and what i found. looking at the other versions (ma7) to see if it is the same.
I can give you the MC2 version with auto correct only if you want
kwazytazz try this out. I have not tested it in any way I just made the changes and repacked and uploaded.
FYI i am in no way responsible if something breaks
I looked back at the thread somebody already said touch the typed word to add the word to the dictionary. Cool. But it'd be great to just edit the dictionary file it existed and editable
Thanks man took me ages to work out how to do this and found your super helpful comment... as you can see absolutely no spelling mistakes thanksI couldn't get this working to save my life so finally i decided to pull the .odex file left over from the original stock file and now auto correct works perfectly thank you so much for this!
.line 273 [COLOR="Red"]this line compare to line 312 in first post, but there's no condition below it and i've no idea what condition to add (if it needs adding at all)[/COLOR]
[COLOR="Blue"] iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder; [COLOR="Red"]Also tried this with v1[/COLOR]
invoke-virtual {v7}, Ljava/lang/StringBuilder;->length()I [COLOR="Red"]Also tried this with v1[/COLOR]
move-result v7 [COLOR="Red"]Also tried this with v1[/COLOR]
if-lez v7, :cond_new [COLOR="Red"]Also tried this with v1, Used cond_new as i don't know wether to use an exisitng condition or not, but it doesn't look like ts did either[/COLOR]
iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager; [COLOR="Red"]Also tried this with v1[/COLOR]
iget-object v8, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder; [COLOR="Red"]Also tried this with v2[/COLOR]
invoke-interface {v7, v8, v9}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getCharSequence(Ljava/lang/StringBuilder;I)I [COLOR="Red"]And tried this with v1, v2, v3[/COLOR]
invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->updateSuggestion()V
invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->setComposingText()V
:cond_new[/COLOR]
invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->clearCandidateList()V
.line 274
iget-object v1, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager;
iget-object v2, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mCandidates:Ljava/util/ArrayList;
invoke-interface {v1, v2}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getSuggestion(Ljava/util/ArrayList;)I
.line 275
Is this still supported?
I'm trying this on a samsung keyboard for galaxy ace II with android 4.1.2
The long press delay one works flawlessly on this keyboard, as that's just a hexadecimal code that needed changing
But i'm having problems with the auto-correction
I've found the area I need to be editing stuff in, but copying the codes in only makes the keyboard crash and then the phone enters a bootloop.
Here's what I've done: (my comments in red, edited code in blue)
Code:.line 273 [COLOR="Red"]this line compare to line 312 in first post, but there's no condition below it and i've no idea what condition to add (if it needs adding at all)[/COLOR] [COLOR="Blue"] iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder; [COLOR="Red"]Also tried this with v1[/COLOR] invoke-virtual {v7}, Ljava/lang/StringBuilder;->length()I [COLOR="Red"]Also tried this with v1[/COLOR] move-result v7 [COLOR="Red"]Also tried this with v1[/COLOR] if-lez v7, :cond_new [COLOR="Red"]Also tried this with v1, Used cond_new as i don't know wether to use an exisitng condition or not, but it doesn't look like ts did either[/COLOR] iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager; [COLOR="Red"]Also tried this with v1[/COLOR] iget-object v8, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder; [COLOR="Red"]Also tried this with v2[/COLOR] invoke-interface {v7, v8, v9}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getCharSequence(Ljava/lang/StringBuilder;I)I [COLOR="Red"]And tried this with v1, v2, v3[/COLOR] invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->updateSuggestion()V invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->setComposingText()V :cond_new[/COLOR] invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->clearCandidateList()V .line 274 iget-object v1, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager; iget-object v2, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mCandidates:Ljava/util/ArrayList; invoke-interface {v1, v2}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getSuggestion(Ljava/util/ArrayList;)I .line 275
Any help would be much appreciated
###################################################
# Change the long press delay to 200ms from 500ms #
###################################################
.line 498
const/16 v0, 0xc8
.line 499
.local v0, delay:I
packed-switch p1, :pswitch_data_0
.line 504
const/16 v0, 0xc8
.line 507
:goto_0
int-to-long v1, v0
return-wide v1
.line 501
:pswitch_0
const/16 v0, 0xc8
.line 312
:cond_3
##################################################
# Add support for auto-correct on word separator #
##################################################
#check if the user has entered text
iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->length()I
move-result v7
if-lez v7, :cond_10
iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager;
iget-object v8, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
invoke-interface {v7, v8, v9}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getCharSequence(Ljava/lang/StringBuilder;I)I
invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->updateSuggestion()V
invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->setComposingText()V
##################################################
# End support for auto-correct on word separator #
##################################################
#move clearCandidateList from beginning of processWordSeparator to after we do correct
:cond_10
invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->clearCandidateList()V
#code below is not changed - just for reference
iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager;
iget-object v8, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mCandidates:Ljava/util/ArrayList;
invoke-interface {v7, v8}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getSuggestion(Ljava/util/ArrayList;)I
.line 313
Found this link to a working stock keyboard with auto correct for ma7 I've been using it all day and haven't had a single problem just loving my auto correct! =D so anyways go to
http://xdaforums.com/showthread.php?t=2110841 and click spoiler in the op at the bottom of the list is the keyboard for sprint. It says to flash it but I just unzipped the zip file and manually moved the apk to system/app and deleted the .odex file. If I helped at all please thank me =)
Sent from my SPH-L900 using xda app-developers app