summaryrefslogtreecommitdiff
authortellen.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)
commit8c28f3bf78299061fb25099d622948e9d94d6585 (patch)
treeb57779f39c0fb74bd3e5285c97e4c01c724ad4ad
parent3e7908077a078ef1d415ebca2d504708a5c23f90 (diff)
downloadRemoteIME-8c28f3bf78299061fb25099d622948e9d94d6585.zip
RemoteIME-8c28f3bf78299061fb25099d622948e9d94d6585.tar.gz
RemoteIME-8c28f3bf78299061fb25099d622948e9d94d6585.tar.bz2
fix compiler errors:vibrate api has changed
Diffstat
-rwxr-xr-xsrc/com/amlogic/inputmethod/remote/RemoteIME.java4
-rwxr-xr-xsrc/com/amlogic/inputmethod/remote/Vibrator.java6
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();
}