优化
This commit is contained in:
@@ -34,7 +34,8 @@ class ClickActionConfigDialog : BaseDialogFragment(R.layout.dialog_click_action_
|
|||||||
Pair(7, getString(R.string.bookmark_add)),
|
Pair(7, getString(R.string.bookmark_add)),
|
||||||
Pair(8, getString(R.string.edit_content)),
|
Pair(8, getString(R.string.edit_content)),
|
||||||
Pair(9, getString(R.string.replace_state_change)),
|
Pair(9, getString(R.string.replace_state_change)),
|
||||||
Pair(10, getString(R.string.chapter_list))
|
Pair(10, getString(R.string.chapter_list)),
|
||||||
|
Pair(11, getString(R.string.search_content))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -424,6 +424,7 @@ class ReadView(context: Context, attrs: AttributeSet) :
|
|||||||
8 -> activity?.showDialogFragment(ContentEditDialog())
|
8 -> activity?.showDialogFragment(ContentEditDialog())
|
||||||
9 -> callBack.changeReplaceRuleState()
|
9 -> callBack.changeReplaceRuleState()
|
||||||
10 -> callBack.openChapterList()
|
10 -> callBack.openChapterList()
|
||||||
|
11 -> callBack.openSearchActivity(null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -654,5 +655,6 @@ class ReadView(context: Context, attrs: AttributeSet) :
|
|||||||
fun openChapterList()
|
fun openChapterList()
|
||||||
fun addBookmark()
|
fun addBookmark()
|
||||||
fun changeReplaceRuleState()
|
fun changeReplaceRuleState()
|
||||||
|
fun openSearchActivity(searchWord: String?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user