recyclerview alerts public

This commit is contained in:
InsanusMokrassar 2021-05-12 21:16:05 +06:00
parent df4eaea4b9
commit 5860901c30
2 changed files with 6 additions and 2 deletions

View File

@ -10,6 +10,10 @@
* `Klock`: `2.0.7` -> `2.1.0`
* `UUID`: `0.2.4` -> `0.3.0`
* **ALL DEPRECATIONS WERE REMOVED**
* `Android`:
* `Alerts`:
* `RecyclerView`:
* Classes `ActionViewHolder` and `ActionsRecyclerViewAdapter` became public
* `Coroutines`:
* New extension and function `doSynchronously` which are the same as `launchSynchronously`
* New extensions `doInDefault` and `doInIO`

View File

@ -15,7 +15,7 @@ data class AlertAction(
val callback: (DialogInterface) -> Unit
)
private class ActionViewHolder(
class ActionViewHolder(
container: ViewGroup, dialogInterfaceGetter: () -> DialogInterface
) : AbstractStandardViewHolder<AlertAction>(container, android.R.layout.simple_list_item_1) {
private lateinit var action: AlertAction
@ -34,7 +34,7 @@ private class ActionViewHolder(
}
}
private class ActionsRecyclerViewAdapter(
class ActionsRecyclerViewAdapter(
data: List<AlertAction>,
private val dialogInterfaceGetter: () -> DialogInterface
) : RecyclerViewAdapter<AlertAction>(data) {