mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Use public SDK APIs for the InputMethodManager and Vibrator.
This commit is contained in:
parent
3263841911
commit
71351469e3
@ -1020,7 +1020,7 @@ public class LatinIME extends InputMethodService
|
||||
return;
|
||||
}
|
||||
if (mVibrator == null) {
|
||||
mVibrator = new Vibrator();
|
||||
mVibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);
|
||||
}
|
||||
mVibrator.vibrate(mVibrateDuration);
|
||||
}
|
||||
@ -1096,7 +1096,8 @@ public class LatinIME extends InputMethodService
|
||||
launchSettings();
|
||||
break;
|
||||
case POS_METHOD:
|
||||
InputMethodManager.getInstance(LatinIME.this).showInputMethodPicker();
|
||||
((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE))
|
||||
.showInputMethodPicker();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user