author | tellen.yu <tellen.yu@amlogic.com> | 2013-08-14 11:09:42 (GMT) |
---|---|---|
committer | tellen.yu <tellen.yu@amlogic.com> | 2013-08-14 11:09:42 (GMT) |
commit | 8c28f3bf78299061fb25099d622948e9d94d6585 (patch) | |
tree | b57779f39c0fb74bd3e5285c97e4c01c724ad4ad | |
parent | 3e7908077a078ef1d415ebca2d504708a5c23f90 (diff) | |
download | RemoteIME-8c28f3bf78299061fb25099d622948e9d94d6585.zip RemoteIME-8c28f3bf78299061fb25099d622948e9d94d6585.tar.gz RemoteIME-8c28f3bf78299061fb25099d622948e9d94d6585.tar.bz2 |
fix compiler errors:vibrate api has changed
-rwxr-xr-x | src/com/amlogic/inputmethod/remote/RemoteIME.java | 4 | ||||
-rwxr-xr-x | src/com/amlogic/inputmethod/remote/Vibrator.java | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/com/amlogic/inputmethod/remote/RemoteIME.java b/src/com/amlogic/inputmethod/remote/RemoteIME.java index e253798..b30479a 100755 --- a/src/com/amlogic/inputmethod/remote/RemoteIME.java +++ b/src/com/amlogic/inputmethod/remote/RemoteIME.java @@ -1337,7 +1337,9 @@ public class RemoteIME extends InputMethodService { launchSettings(); break; case 1: - InputMethodManager.getInstance(RemoteIME.this) + //InputMethodManager.getInstance(RemoteIME.this) + // .showInputMethodPicker(); + InputMethodManager.getInstance() .showInputMethodPicker(); break; } diff --git a/src/com/amlogic/inputmethod/remote/Vibrator.java b/src/com/amlogic/inputmethod/remote/Vibrator.java index 846bc90..2066ff3 100755 --- a/src/com/amlogic/inputmethod/remote/Vibrator.java +++ b/src/com/amlogic/inputmethod/remote/Vibrator.java @@ -68,11 +68,12 @@ public class Vibrator Log.w(TAG, "Failed to vibrate; no vibrator service."); return; } + /* try { mService.vibrate(milliseconds, mToken); } catch (RemoteException e) { Log.w(TAG, "Failed to vibrate.", e); - } + }*/ } /** @@ -103,11 +104,12 @@ public class Vibrator // not be null, let that be checked, because the server will drop it // anyway if (repeat < pattern.length) { + /* try { mService.vibratePattern(pattern, repeat, mToken); } catch (RemoteException e) { Log.w(TAG, "Failed to vibrate.", e); - } + }*/ } else { throw new ArrayIndexOutOfBoundsException(); } |