Rename adapter methods for BottomActionMenu

This commit is contained in:
Paul Akhamiogu 2021-12-20 14:57:41 +00:00
parent 609c5161c8
commit 16647005c4
5 changed files with 7 additions and 7 deletions

View file

@ -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) {}

View file

@ -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) {}

View file

@ -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())
}

View file

@ -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) {

View file

@ -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) {