Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71351469 authored by Brandon Ballinger's avatar Brandon Ballinger Committed by Jean-Baptiste Queru
Browse files

Use public SDK APIs for the InputMethodManager and Vibrator.

parent 32638419
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
                }
            }