mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-21 03:54:03 +00:00
Use Runnable instead of () -> Unit if converted to Runnable anyway
This commit is contained in:
@@ -346,7 +346,7 @@ class PoTokenWebView private constructor(
|
||||
*/
|
||||
private fun runOnMainThread(
|
||||
emitterIfPostFails: SingleEmitter<out Any>,
|
||||
runnable: () -> Unit,
|
||||
runnable: Runnable,
|
||||
) {
|
||||
if (!Handler(Looper.getMainLooper()).post(runnable)) {
|
||||
emitterIfPostFails.onError(PoTokenException("Could not run on main thread"))
|
||||
|
Reference in New Issue
Block a user