title: onTextChanged - value of before and count
body: <p>I am using a TextWatcher for my Edittext. In the onTextChanged method happens something strange.</p>
  
  <pre><code>@Override
  public void onTextChanged(CharSequence s, int start, int before, int count) {
      Log.i("onTextChanged", "Count: "+ count + " Before: " + before);
      if (before &gt; count) {
          ... do something
      }
  }
  </code></pre>
  
  <p>when I write somthing in the Edittext, I expect output in logcat like this:</p>
  
  <p>Input: s</p>
  
  <pre><code>I/onTextChanged﹕ Count: 1 Before: 0
  </code></pre>
  
  <p>Input: so</p>
  
  <pre><code>I/onTextChanged﹕ Count: 2 Before: 1
  </code></pre>
  
  <p>Input: som</p>
  
  <pre><code>I/onTextChanged﹕ Count: 3 Before: 2
  </code></pre>
  
  <p>Input: som[space] //add a space here</p>
  
  <pre><code>I/onTextChanged﹕ Count: 4 Before: 3
  </code></pre>
  
  <p><strong>What I expect when remove space</strong></p>
  
  <p>Input: som //remove space here</p>
  
  <pre><code>I/onTextChanged﹕ Count: 3 Before: 4
  </code></pre>
  
  <p><strong>But when removing the space my output says</strong></p>
  
  <p>Input: som //remove space here</p>
  
  <pre><code>I/onTextChanged﹕ Count: 3 Before: 1
  </code></pre>
  
  <p>What happend here? Why is Before = 1 and not 4? </p>