Rename adapter methods for BottomActionMenu
This commit is contained in:
parent
609c5161c8
commit
16647005c4
5 changed files with 7 additions and 7 deletions
|
@ -35,7 +35,7 @@ class FilepickerFavoritesAdapter(
|
|||
|
||||
override fun getItemCount() = paths.size
|
||||
|
||||
override fun onContextViewCreated(view: BottomActionMenuView) {}
|
||||
override fun onBottomActionMenuCreated(view: BottomActionMenuView) {}
|
||||
|
||||
override fun actionItemPressed(id: Int) {}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ class FilepickerItemsAdapter(
|
|||
|
||||
override fun getItemCount() = fileDirItems.size
|
||||
|
||||
override fun onContextViewCreated(view: BottomActionMenuView) {}
|
||||
override fun onBottomActionMenuCreated(view: BottomActionMenuView) {}
|
||||
|
||||
override fun actionItemPressed(id: Int) {}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ class ManageBlockedNumbersAdapter(
|
|||
|
||||
override fun getActionMenuId() = R.menu.cab_blocked_numbers
|
||||
|
||||
override fun onContextViewCreated(view: BottomActionMenuView) {
|
||||
override fun onBottomActionMenuCreated(view: BottomActionMenuView) {
|
||||
view.toggleItemVisibility(R.id.cab_copy_number, isOneItemSelected())
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc
|
|||
|
||||
abstract fun getActionMenuId(): Int
|
||||
|
||||
abstract fun onContextViewCreated(view: BottomActionMenuView)
|
||||
abstract fun onBottomActionMenuCreated(view: BottomActionMenuView)
|
||||
|
||||
abstract fun actionItemPressed(id: Int)
|
||||
|
||||
|
@ -63,7 +63,7 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc
|
|||
init {
|
||||
contextCallback = object : BottomActionMenuCallback {
|
||||
override fun onViewCreated(view: BottomActionMenuView) {
|
||||
onContextViewCreated(view)
|
||||
onBottomActionMenuCreated(view)
|
||||
}
|
||||
|
||||
override fun onItemClicked(item: BottomActionMenuItem) {
|
||||
|
|
|
@ -51,7 +51,7 @@ abstract class MyRecyclerViewListAdapter<T>(
|
|||
|
||||
abstract fun getActionMenuId(): Int
|
||||
|
||||
abstract fun onContextViewCreated(view: BottomActionMenuView)
|
||||
abstract fun onBottomActionMenuCreated(view: BottomActionMenuView)
|
||||
|
||||
abstract fun actionItemPressed(id: Int)
|
||||
|
||||
|
@ -70,7 +70,7 @@ abstract class MyRecyclerViewListAdapter<T>(
|
|||
init {
|
||||
contextCallback = object : BottomActionMenuCallback {
|
||||
override fun onViewCreated(view: BottomActionMenuView) {
|
||||
onContextViewCreated(view)
|
||||
onBottomActionMenuCreated(view)
|
||||
}
|
||||
|
||||
override fun onItemClicked(item: BottomActionMenuItem) {
|
||||
|
|
Loading…
Reference in a new issue