title: Attempted to finish an input event but the input event receiver has already been disposed error
body: <p>I am not sure what I have done but for a moment my code was working smoothly and after I added a new activity the error <strong>Attempted to finish an input event but the input event receiver has already been disposed</strong>. </p>
  
  <p>I need help on how to fix this.</p>
  
  <pre><code>package proj.com.desperationfinals;
  
  import android.content.DialogInterface;
  import android.content.Intent;
  import android.support.v7.app.AlertDialog;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.text.Editable;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  
  public class MainActivity extends AppCompatActivity {
  
  EditText editText;
  
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      editText = (EditText) findViewById(R.id.editText);
  
  }
  
  
  
  
  
  public void validate (View view){
      String word = editText.getText().toString();
  
      if(word.contentEquals("Sir Zalameda")) {
              AlertDialog.Builder Alert = new AlertDialog.Builder(this);
              Alert.setMessage("Correct!")
                      .create();
          Alert.show();
          Intent i = new Intent(MainActivity.this, Main2Activity.class);
          startActivity(i);
  
  
  
      }else{
          AlertDialog.Builder Alert = new AlertDialog.Builder(this);
          Alert.setMessage("Mali!")
  
  
  
                  .create();
          Alert.show();
  
      }
      }
  </code></pre>
  
  <p>}</p>