pull/1395/head
gedoor 3 years ago
parent 1a6d59389d
commit 6bea7a6ac2
  1. 1
      app/src/main/java/io/legado/app/ui/widget/dialog/CodeDialog.kt

@ -32,6 +32,7 @@ class CodeDialog() : BaseDialogFragment(R.layout.dialog_code_view) {
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
binding.toolBar.setBackgroundColor(primaryColor) binding.toolBar.setBackgroundColor(primaryColor)
if (arguments?.getBoolean("disableEdit") == true) { if (arguments?.getBoolean("disableEdit") == true) {
binding.toolBar.title = "code view"
binding.codeView.disableEdit() binding.codeView.disableEdit()
} else { } else {
initMenu() initMenu()

Loading…
Cancel
Save