From 8ab66ff807c8532c30f0332ac3912d4fecef9500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Tue, 19 Dec 2023 14:11:43 +0100 Subject: [PATCH] format code --- .../pillarbox/demo/ui/showcases/webview/WebViewShowcase.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/showcases/webview/WebViewShowcase.kt b/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/showcases/webview/WebViewShowcase.kt index b1fca0bfb..3b46168fd 100644 --- a/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/showcases/webview/WebViewShowcase.kt +++ b/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/showcases/webview/WebViewShowcase.kt @@ -59,9 +59,7 @@ private class DrmReadyWebChromeClient : WebChromeClient() { override fun onPermissionRequest(request: PermissionRequest?) { val resources = request?.resources resources?.forEach { resource -> - if ( - PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID == resource - ) { + if (PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID == resource) { request.grant(resources) return }