title: How can I override attachBaseContext in a Fragment?
body: <p>I have this method that works fine in <code>Activity</code>s. But how do I use it in fragments?</p>
  
  <pre><code>@Override
  public void attachBaseContext(Context newBase) {
      super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
  }
  </code></pre>
  
  <p>Changing <code>protected</code> to <code>public</code> doesn't work, what else can I try? I get an error indicating it does not override the subclass. I found nothing on StackOverflow about this.</p>