title: TextWatcher - cursor goes back to the start of EditText
body: <p>I've got the following TextWatcher definition:</p>
  
  <pre><code>   _textWatcher = new TextWatcher() {
          @Override
          public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
          }
  
          @Override
          public void onTextChanged(CharSequence s, int start, int before, int count) {
  
          }
  
          @Override
          public void afterTextChanged(final Editable s) {
              if (!s.toString().equals(_prev)) {
                  afterTextHandler.removeCallbacks(work);
                  work = new Runnable() {
                      @Override
                      public void run() {                            
                          if (!s.toString().equals(_prevQuoteAmount)) {
                              _prev = s.toString();
                              doSomething();
                          }
                          _et.append("");                            
                      }
                  };
                  afterTextHandler.postDelayed(work, 1000);
              }
              _et.append("");                
          }
      };
  </code></pre>
  
  <p>Everything works as expected (sometimes doSomething() executes and sometimes not, so its execution isn't relevant to the question), but after the user types some text in the EditText component that has this watcher attached to it, the cursor of the text goes back to the beginning of the EditText.</p>
  
  <p>I've got the following log that is shown after onTextChanged() execution (or its handler run() execution):</p>
  
  <blockquote>
    <p>12-08 13:10:55.777 1855-1855/com.android.inputmethod.latin I/LatinIME: Starting input. Cursor position = 4,4</p>
  </blockquote>
  
  <p>Why is the cursor of EditText placed in the beginning of the EditText right after onTextChanged() execution?</p>
  
  <p>Edit 1:
  _et.append("") is a hack that should bring the cursor to the last place of the text. It doesn't work here (though it works on other occasions).</p>
  
  <p>Edit 2:
  Requested knowledge about doSomething:</p>
  
  <pre><code>    if (isReady()) {
          Sender objSender = new Sender();
          objSender.setParam1(_tvParam1.getText().toString());
          objSender.setParam2(_tvParam2.getText().toString());
          objSender.setParam3(_et.getText().toString());
          Service.startActionSend(getActivity(), quote);
      }
  </code></pre>
  
  <p>isReady() - checks conditions (_tvParam1, _tvParam2, _et) before making a network request.
  Service.startActionSend() - making async network request (using IntentService).</p>
  
  <p>Edit 3:
  The issue happens only when entering the handler's run() method.</p>