Skip to content

Commit

Permalink
Bug fixes:
Browse files Browse the repository at this point in the history
flush queue/formatting/preview when repositioning cursor
  • Loading branch information
brentn committed Aug 6, 2014
1 parent 2c11eaa commit dc551b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions main/java/com/brentandjody/stenoime/StenoIME.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ public void onDestroy() {
mKeyboard=null;
}

@Override
public void onViewClicked(boolean focusChanged) {
super.onViewClicked(focusChanged);
Log.d(TAG, "onViewClicked("+focusChanged+")");
if (mTranslator!=null) mTranslator.reset();
preview_length=0;
redo_space=false;
}

@Override
public boolean onKeyUp(int keyCode, KeyEvent event){
return dispatchKeyEvent(event);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,10 @@ protected Void doInBackground(Dictionary... dictionaries) {
} else {
Log.d(TAG, "oops! Translation was null for " + stroke);
}
} else {
Log.d(TAG, "oops! Stroke was null");
}
count++;
if (count % 10000 == 0) {
Log.d(TAG, count + "/" + dict_size + " loaded.");
Log.v(TAG, count + "/" + dict_size + " loaded.");
}
}
db.setTransactionSuccessful();
Expand Down

0 comments on commit dc551b3

Please sign in to comment.