Skip to content

Commit 44f655b

Browse files
committed
Add minor cleanups to FindAndReplaceFragment
1 parent 758d60c commit 44f655b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

AnkiDroid/src/main/java/com/ichi2/anki/browser/FindAndReplaceDialogFragment.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ class FindAndReplaceDialogFragment : AnalyticsDialogFragment() {
9999
}
100100
}
101101

102+
// TODO maybe get rid of the html tags that come with the backend strings and handle the
103+
// sentence case for TR.browsingReplaceWith()
102104
private fun setupLabels() {
103105
binding.labelFind.text =
104106
HtmlCompat.fromHtml(TR.browsingFind(), HtmlCompat.FROM_HTML_MODE_LEGACY)
@@ -218,7 +220,10 @@ class FindAndReplaceDialogFragment : AnalyticsDialogFragment() {
218220
): FindAndReplaceDialogFragment {
219221
val file = IdsFile(context.cacheDir, noteIds, "find-replace")
220222
return FindAndReplaceDialogFragment().apply {
221-
arguments = bundleOf(ARG_IDS to file)
223+
arguments =
224+
Bundle().apply {
225+
putParcelable(ARG_IDS, file)
226+
}
222227
}
223228
}
224229
}

0 commit comments

Comments
 (0)