Skip to content

Instantly share code, notes, and snippets.

View HeyAlex's full-sized avatar
🐌
./gradlew assembleRelease

HeyAlex

🐌
./gradlew assembleRelease
View GitHub Profile
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 {
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 {