コード整理
This commit is contained in:
parent
0788112dc2
commit
e862523482
|
@ -362,13 +362,13 @@ class ActText : AppCompatActivity() {
|
|||
newPos.first.clip(0, end),
|
||||
(newPos.last + 1).clip(0, end),
|
||||
)
|
||||
searchResult.indexOf(newPos).takeIf { it >= 0 }?.plus(1)
|
||||
searchResult.indexOf(newPos).takeIf { it >= 0 }
|
||||
}
|
||||
}
|
||||
|
||||
views.tvSearchCount.text = getString(
|
||||
R.string.search_result,
|
||||
idx?.toString() ?: "0",
|
||||
idx?.plus(1) ?: 0,
|
||||
searchResult.size
|
||||
)
|
||||
}
|
||||
|
|
|
@ -1295,6 +1295,6 @@
|
|||
<string name="save_to_local_folder">Save to local folder</string>
|
||||
<string name="app_data_export_import">Export/Import app data</string>
|
||||
<string name="translate_or_custom_share">Translate/Custom share buttons</string>
|
||||
<string name="search_result" translatable="false">%1$s/%2$d</string>
|
||||
<string name="search_result" translatable="false">%1$d/%2$d</string>
|
||||
<string name="toggle_regexp">.+\?</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue