This file contains 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
#/bin/sh | |
# | |
# Run the file with sudo | |
# | |
launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist | |
kextunload -b com.apple.iokit.IOBluetoothSerialManager | |
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist | |
kextload -b com.apple.iokit.IOBluetoothSerialManager | |
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
This file contains 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
fun <T : Any, B : ViewBinding> createListAdapter( | |
bindingInflater: (LayoutInflater) -> B, | |
bindData: B.(T) -> Unit, | |
): ListAdapter<T, *> = BindingListAdapter(bindingInflater, bindData) | |
class BindableViewHolder<T : Any, B : ViewBinding>( | |
private val binding: B, | |
private val bindData: B.(T) -> Unit, | |
) : RecyclerView.ViewHolder(binding.root) { |