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
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 { |
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
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 { |