Skip to content

Commit 3fc4873

Browse files
committed
Use Runnable instead of () -> Unit if converted to Runnable anyway
1 parent 056809c commit 3fc4873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/schabi/newpipe/util/potoken/PoTokenWebView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class PoTokenWebView private constructor(
346346
*/
347347
private fun runOnMainThread(
348348
emitterIfPostFails: SingleEmitter<out Any>,
349-
runnable: () -> Unit,
349+
runnable: Runnable,
350350
) {
351351
if (!Handler(Looper.getMainLooper()).post(runnable)) {
352352
emitterIfPostFails.onError(PoTokenException("Could not run on main thread"))

0 commit comments

Comments
 (0)