This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BaseListAdapter<T, VB : ViewBinding>( | |
private val bindingInflater: (LayoutInflater, ViewGroup, Boolean) -> VB, | |
diffUtil: DiffUtil.ItemCallback<T>, | |
) : ListAdapter<T, BaseListAdapter<T, VB>.ViewHolder>(diffUtil) { | |
inner class ViewHolder(val binding: VB, val context: Context) : | |
RecyclerView.ViewHolder(binding.root) { | |
fun bind(item: T, position: Int) { | |
bindItem(item, binding, position, context) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |