diff options
-rw-r--r-- | src/us/minak/CreateGestureActivity.java | 12 | ||||
-rw-r--r-- | src/us/minak/IMEService.java | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/us/minak/CreateGestureActivity.java b/src/us/minak/CreateGestureActivity.java index 19fbc83..c59c3b4 100644 --- a/src/us/minak/CreateGestureActivity.java +++ b/src/us/minak/CreateGestureActivity.java @@ -38,7 +38,7 @@ public class CreateGestureActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - + setContentView(R.layout.create_gesture); mDoneButton = findViewById(R.id.done); @@ -50,7 +50,7 @@ public class CreateGestureActivity extends Activity { @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); - + if (mGesture != null) { outState.putParcelable("gesture", mGesture); } @@ -59,7 +59,7 @@ public class CreateGestureActivity extends Activity { @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); - + mGesture = savedInstanceState.getParcelable("gesture"); if (mGesture != null) { final GestureOverlayView overlay = @@ -97,14 +97,14 @@ public class CreateGestureActivity extends Activity { } finish(); - + } - + public void cancelGesture(View v) { setResult(RESULT_CANCELED); finish(); } - + private class GesturesProcessor implements GestureOverlayView.OnGestureListener { public void onGestureStarted(GestureOverlayView overlay, MotionEvent event) { mDoneButton.setEnabled(false); diff --git a/src/us/minak/IMEService.java b/src/us/minak/IMEService.java index 6064be9..92aad05 100644 --- a/src/us/minak/IMEService.java +++ b/src/us/minak/IMEService.java @@ -13,22 +13,22 @@ public class IMEService extends InputMethodService { public void onInitializeInterface() { // TODO } - + @Override public View onCreateInputView() { final IMEView view = (IMEView) getLayoutInflater().inflate(R.layout.ime, null); - + view.setOnCharacterEnteredListener(new OnCharacterEnteredListener() { @Override public void characterEntered(String character) { getCurrentInputConnection().commitText(character, 1); } }); - + this.imeView = view; return view; } - + /** * Called to inform the input method that text input has started in an editor. */ |