title: setOnEditorActionListener not launching Activity on Navigation Drawer
body: <p>So i'm trying to launch an Activity when the user is done writing.
  But instead of launching the Activity, it seems to run the Program again.
  I'm saying this cause instead of launching the right Activity it launches the first Activity of my program.</p>
  
  <pre><code>search.setOnEditorActionListener(new EditText.OnEditorActionListener() {
      @Override
      public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
          if (actionId == EditorInfo.IME_ACTION_SEARCH ||
              actionId == EditorInfo.IME_ACTION_DONE ||
              event.getAction() == KeyEvent.ACTION_DOWN &amp;&amp;
              event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
              if (!event.isShiftPressed()) {
                  // the user is done typing.
                  text = search.getText().toString();
                  new SearchActivity(text);
                  Intent it = new Intent(MainActivity.this, SearchActivity.class);
                  startActivity(it);
                  return true; // consume.
              }
          }
          return false;
      }
  });
  </code></pre>
  
  <p>Here is the code for the SearchActivity</p>
  
  <pre><code>public class SearchActivity extends AppCompatActivity {
      private String text;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_search_activity);
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
      }
  
      public SearchActivity(String text) {
          this.text = text;
      }
  }
  </code></pre>
  
  <p>Thank you in advance</p>