Skip to content

Commit

Permalink
Update text search
Browse files Browse the repository at this point in the history
  • Loading branch information
billthefarmer committed Oct 30, 2017
1 parent b560331 commit 39cdd1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/billthefarmer/editor/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import android.view.SubMenu;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ScrollView;
Expand Down Expand Up @@ -321,7 +322,12 @@ public boolean onCreateOptionsMenu(Menu menu)
searchView = (SearchView) searchItem.getActionView();

if (searchView != null)
{
searchView.setSubmitButtonEnabled(true);
searchView.setImeOptions(EditorInfo.IME_ACTION_GO);
searchView.setOnQueryTextListener(new QueryTextListener());
}

return true;
}

Expand Down

0 comments on commit 39cdd1a

Please sign in to comment.