title: Android stop onPause from being called in parent class
body: <p>In my app I have a child class that extends a <em>support library</em> class called <code>SearchFragment</code> in the <em>leanback support library</em>. I need to extend this class but unfortunately the <code>onPause()</code> of the parent (<code>SearchFragment</code>) class has a method I cannot use. </p>
  
  <p>Every time I leave the activity the parent class runs the <code>onPause()</code> which calls the method I don't want. </p>
  
  <p>Is there a way I can extend the <code>SearchFragment</code> class but not allow it to run its own <code>onPause()</code>?</p>
  
  <p>Here is the <code>onPause()</code> method in the parent class that I cannot alter.</p>
  
  <pre><code>android.support.v17.leanback.app.SearchFragment
  
  @Override
  public void onPause() {
      releaseRecognizer(); //Need to stop this from calling
      super.onPause();
  }
  
  private void releaseRecognizer() {
      if (null != mSpeechRecognizer) {
          mSearchBar.setSpeechRecognizer(null);
          mSpeechRecognizer.destroy();
          mSpeechRecognizer = null;
      }
  }
  </code></pre>
  
  <p>Also, the reason I am doing this is because this is an Android TV > Fire TV port. Fire TV does not have a speechRecognizer.</p>