|
|
@ -35,15 +35,17 @@ class ReplaceEditDialog : BaseDialogFragment(), |
|
|
|
fragmentManager: FragmentManager, |
|
|
|
fragmentManager: FragmentManager, |
|
|
|
id: Long = -1, |
|
|
|
id: Long = -1, |
|
|
|
pattern: String? = null, |
|
|
|
pattern: String? = null, |
|
|
|
isRegex: Boolean = false |
|
|
|
isRegex: Boolean = false, |
|
|
|
|
|
|
|
scope: String? = null |
|
|
|
) { |
|
|
|
) { |
|
|
|
val dialog = ReplaceEditDialog() |
|
|
|
val dialog = ReplaceEditDialog() |
|
|
|
val bundle = Bundle() |
|
|
|
val bundle = Bundle() |
|
|
|
bundle.putLong("id", id) |
|
|
|
bundle.putLong("id", id) |
|
|
|
bundle.putString("pattern", pattern) |
|
|
|
bundle.putString("pattern", pattern) |
|
|
|
bundle.putBoolean("isRegex", isRegex) |
|
|
|
bundle.putBoolean("isRegex", isRegex) |
|
|
|
|
|
|
|
bundle.putString("scope", scope) |
|
|
|
dialog.arguments = bundle |
|
|
|
dialog.arguments = bundle |
|
|
|
dialog.show(fragmentManager, "editReplace") |
|
|
|
dialog.show(fragmentManager, this::class.simpleName) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|