title: How to undo a mask filter blur on a TextView in Android
body: <p>I used the code from <a href="https://stackoverflow.com/a/39313269/682778">here</a> to blur some text:</p>
  
  <pre><code>    val radius = msgText.getTextSize() / 3
      val mTextFilter = BlurMaskFilter(radius, BlurMaskFilter.Blur.NORMAL)
      msgTextView.getPaint().setMaskFilter(mTextFilter)
  </code></pre>
  
  <p>...at some point I wanted to undo the blur so I tried:</p>
  
  <pre><code>msgTextView.getPaint().setMaskFilter(null)
  </code></pre>
  
  <p>but that does <strong>not</strong> clear the blur from the text despite its description:</p>
  
  <pre><code>package android.graphics;
  
  ...
  
  public class Paint {
  
  ...
  /**
       * Set or clear the maskfilter object.
       * &lt;p /&gt;
       * Pass null to clear any previous maskfilter.
       * As a convenience, the parameter passed is also returned.
       *
       * @param maskfilter May be null. The maskfilter to be installed in the
       *                   paint
       * @return           maskfilter
       */
      public MaskFilter setMaskFilter(MaskFilter maskfilter) {
          long maskfilterNative = 0;
          if (maskfilter != null) {
              maskfilterNative = maskfilter.native_instance;
          }
          nSetMaskFilter(mNativePaint, maskfilterNative);
          mMaskFilter = maskfilter;
          return maskfilter;
      }
  ...
  }
  </code></pre>
  
  <p>So I am confused. Any idea?</p>