aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt
index 03bfacd5..bdaf22ba 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClients.kt
@@ -16,6 +16,7 @@
*/
package com.pitchedapps.frost.web
+import android.graphics.Bitmap
import android.net.Uri
import android.webkit.ConsoleMessage
import android.webkit.GeolocationPermissions
@@ -52,6 +53,10 @@ class FrostChromeClient(web: FrostWebView) : WebChromeClient() {
private val activity = (web.context as? ActivityContract)
private val context = web.context!!
+ override fun getDefaultVideoPoster(): Bitmap? =
+ super.getDefaultVideoPoster()
+ ?: Bitmap.createBitmap(50, 50, Bitmap.Config.ARGB_8888)
+
override fun onConsoleMessage(consoleMessage: ConsoleMessage): Boolean {
L.v { "Chrome Console ${consoleMessage.lineNumber()}: ${consoleMessage.message()}" }
return true