diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-04-13 02:56:56 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-04-13 02:56:56 -0700 |
commit | 272bd8691dd6cd81d4651a61ee5ea7df8d6e5787 (patch) | |
tree | 7a2d1b10e9ebb34bacff83ba80fe820ff1d574c2 | |
parent | 77c6fcfe2c38331b8d8bd3fbd8483bd6e879bd99 (diff) | |
download | PinyinIME-272bd8691dd6cd81d4651a61ee5ea7df8d6e5787.tar.gz |
Get Vibrator from Context instead of using private API.android-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1jb-releasejb-mr0-releasejb-dev
Bug: 6334179
Change-Id: I55ee28578ba8ac22168c3578e4888b2235442884
-rw-r--r-- | src/com/android/inputmethod/pinyin/SoftKeyboardView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/inputmethod/pinyin/SoftKeyboardView.java b/src/com/android/inputmethod/pinyin/SoftKeyboardView.java index 5543f33..bd74701 100644 --- a/src/com/android/inputmethod/pinyin/SoftKeyboardView.java +++ b/src/com/android/inputmethod/pinyin/SoftKeyboardView.java @@ -380,7 +380,7 @@ public class SoftKeyboardView extends View { return; } if (mVibrator == null) { - mVibrator = new Vibrator(); + mVibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); } mVibrator.vibrate(mVibratePattern, -1); } |