Skip to content

Commit

Permalink
Merge pull request #3279 from wesinator/find_long_strings_send_to_find
Browse files Browse the repository at this point in the history
"Find" on selection text: still submit selections greater than 15 chars
  • Loading branch information
tuomas2 authored Aug 1, 2024
2 parents af21eed + cba15bb commit 3969cd9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,10 @@ class BibleView(val mainBibleActivity: MainBibleActivity,
BookName.setFullBookName(wasFullBookName)
}
}
val searchText = if((currentSelectionText?.length ?: 0) > 15) null else currentSelectionText
if(ref == null && searchText != null) {
if(ref == null && currentSelectionText != null) {
val item = menu.findItem(R.id.search)
item.isVisible = true
item.title = context.getString(R.string.search_what, searchText)
item.title = if(currentSelectionText?.length < 16) context.getString(R.string.search_what, currentSelectionText) else context.getString(R.string.search)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && currentSelectionText != null) {
var menuItemOrder = 100
Expand Down

0 comments on commit 3969cd9

Please sign in to comment.