protected void removeAccessibilityApis() {
    if (mTextToSpeech != null) {
      mContentViewCore.removeJavascriptInterface(ALIAS_ACCESSIBILITY_JS_INTERFACE);
      mTextToSpeech.stop();
      mTextToSpeech.shutdownInternal();
      mTextToSpeech = null;
    }

    if (mVibrator != null) {
      mContentViewCore.removeJavascriptInterface(ALIAS_ACCESSIBILITY_JS_INTERFACE_2);
      mVibrator.cancel();
      mVibrator = null;
    }
  }
 /** Stop any notifications that are currently going on (e.g. Text-to-Speech). */
 public void onPageLostFocus() {
   if (mContentViewCore.isAlive()) {
     if (mTextToSpeech != null) mTextToSpeech.stop();
     if (mVibrator != null) mVibrator.cancel();
   }
 }