mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-29 13:38:45 +00:00
recyclerview alerts public
This commit is contained in:
parent
df4eaea4b9
commit
5860901c30
@ -10,6 +10,10 @@
|
|||||||
* `Klock`: `2.0.7` -> `2.1.0`
|
* `Klock`: `2.0.7` -> `2.1.0`
|
||||||
* `UUID`: `0.2.4` -> `0.3.0`
|
* `UUID`: `0.2.4` -> `0.3.0`
|
||||||
* **ALL DEPRECATIONS WERE REMOVED**
|
* **ALL DEPRECATIONS WERE REMOVED**
|
||||||
|
* `Android`:
|
||||||
|
* `Alerts`:
|
||||||
|
* `RecyclerView`:
|
||||||
|
* Classes `ActionViewHolder` and `ActionsRecyclerViewAdapter` became public
|
||||||
* `Coroutines`:
|
* `Coroutines`:
|
||||||
* New extension and function `doSynchronously` which are the same as `launchSynchronously`
|
* New extension and function `doSynchronously` which are the same as `launchSynchronously`
|
||||||
* New extensions `doInDefault` and `doInIO`
|
* New extensions `doInDefault` and `doInIO`
|
||||||
|
@ -15,7 +15,7 @@ data class AlertAction(
|
|||||||
val callback: (DialogInterface) -> Unit
|
val callback: (DialogInterface) -> Unit
|
||||||
)
|
)
|
||||||
|
|
||||||
private class ActionViewHolder(
|
class ActionViewHolder(
|
||||||
container: ViewGroup, dialogInterfaceGetter: () -> DialogInterface
|
container: ViewGroup, dialogInterfaceGetter: () -> DialogInterface
|
||||||
) : AbstractStandardViewHolder<AlertAction>(container, android.R.layout.simple_list_item_1) {
|
) : AbstractStandardViewHolder<AlertAction>(container, android.R.layout.simple_list_item_1) {
|
||||||
private lateinit var action: AlertAction
|
private lateinit var action: AlertAction
|
||||||
@ -34,7 +34,7 @@ private class ActionViewHolder(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ActionsRecyclerViewAdapter(
|
class ActionsRecyclerViewAdapter(
|
||||||
data: List<AlertAction>,
|
data: List<AlertAction>,
|
||||||
private val dialogInterfaceGetter: () -> DialogInterface
|
private val dialogInterfaceGetter: () -> DialogInterface
|
||||||
) : RecyclerViewAdapter<AlertAction>(data) {
|
) : RecyclerViewAdapter<AlertAction>(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user