Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-inputmethods-PinyinIME: Commit

packages/inputmethods/PinyinIME


Commit MetaInfo

Révision272bd8691dd6cd81d4651a61ee5ea7df8d6e5787 (tree)
l'heure2012-04-13 18:56:56
AuteurJeff Brown <jeffbrown@goog...>
CommiterJeff Brown

Message de Log

Get Vibrator from Context instead of using private API.

Bug: 6334179
Change-Id: I55ee28578ba8ac22168c3578e4888b2235442884

Change Summary

Modification

--- 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 {
380380 return;
381381 }
382382 if (mVibrator == null) {
383- mVibrator = new Vibrator();
383+ mVibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE);
384384 }
385385 mVibrator.vibrate(mVibratePattern, -1);
386386 }
Afficher sur ancien navigateur de dépôt.