diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-21 21:02:55 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-04-21 21:02:55 -0400 |
commit | 5002792f2c79a7479c531736a4a9c40c0b1fe116 (patch) | |
tree | c4ce594859a1d47d41c62674298ee67c2481fa25 /app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt | |
parent | 4739e6f58df1116babac69896764e83db551f583 (diff) | |
download | frost-5002792f2c79a7479c531736a4a9c40c0b1fe116.tar.gz frost-5002792f2c79a7479c531736a4a9c40c0b1fe116.tar.bz2 frost-5002792f2c79a7479c531736a4a9c40c0b1fe116.zip |
Wrap all db calls using our own context
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt index 6511ef9f..c66180ed 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt @@ -58,6 +58,7 @@ class DebugWebView @JvmOverloads constructor( settings.userAgentString = USER_AGENT_MOBILE setLayerType(View.LAYER_TYPE_HARDWARE, null) webViewClient = DebugClient() + @Suppress("DEPRECATION") isDrawingCacheEnabled = true } @@ -72,6 +73,7 @@ class DebugWebView @JvmOverloads constructor( } try { output.outputStream().use { + @Suppress("DEPRECATION") drawingCache.compress(Bitmap.CompressFormat.PNG, 100, it) } L.d { "Created screenshot at ${output.absolutePath}" } |