Skip to content

Instantly share code, notes, and snippets.

Avatar
🐌
./gradlew assembleRelease

HeyAlex

🐌
./gradlew assembleRelease
View GitHub Profile
View BottomSheetWebView.kt
class BottomSheetWebView(context: Context, p_attrs: AttributeSet) : WebView(context, p_attrs) {
override fun onInterceptTouchEvent(ev: MotionEvent): Boolean {
if (canScrollVertically(this)) {
parent.requestDisallowInterceptTouchEvent(true)
}
return super.onInterceptTouchEvent(ev)
}
override fun onTouchEvent(ev: MotionEvent): Boolean {
View CoroutineExecutor.kt
class CoroutineExecutor @JvmOverloads constructor(
private val coroutineScope: CoroutineScope,
private val dispatcher: CoroutineDispatcher,
override val capacity: Int = DEFAULT_CAPACITY
) : Executor {
override val isMainThreadSupported = true
override fun execute(isConcurrent: Boolean, executable: () -> Unit) {
coroutineScope.launch {
You can’t perform that action at this time.