Skip to content

Commit

Permalink
Update search
Browse files Browse the repository at this point in the history
  • Loading branch information
billthefarmer committed Jul 27, 2024
1 parent 89876eb commit c6668ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/billthefarmer/editor/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,13 @@ public boolean onOptionsItemSelected(MenuItem item)
@Override
public void onBackPressed()
{
// Close text search
if (searchItem != null && searchItem.isActionViewExpanded())
{
searchItem.collapseActionView();
return;
}

if (changed)
alertDialog(this, R.string.appName, R.string.modified,
R.string.save, R.string.discard, (dialog, id) ->
Expand Down

0 comments on commit c6668ba

Please sign in to comment.