コード整理

This commit is contained in:
tateisu 2023-05-06 21:58:27 +09:00
parent 0788112dc2
commit e862523482
2 changed files with 3 additions and 3 deletions

View File

@ -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
)
}

View File

@ -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>