aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-26 15:32:31 -0800
committerAllan Wang <me@allanwang.ca>2019-12-26 15:32:31 -0800
commited18f003bb3bd80149e9fce7288382fb85dafdd7 (patch)
tree0aafd03e23abc05969797896506720750cf2e732 /app/src/main/kotlin/com
parent15494d3b42315fa6fa7ae5daeb5ddf1f964b3932 (diff)
downloadfrost-ed18f003bb3bd80149e9fce7288382fb85dafdd7.tar.gz
frost-ed18f003bb3bd80149e9fce7288382fb85dafdd7.tar.bz2
frost-ed18f003bb3bd80149e9fce7288382fb85dafdd7.zip
Convert to view binding
Diffstat (limited to 'app/src/main/kotlin/com')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt
index d7876888..71152190 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt
@@ -24,7 +24,6 @@ import android.os.Bundle
import android.os.Environment
import android.view.View
import androidx.customview.widget.ViewDragHelper
-import androidx.databinding.DataBindingUtil
import ca.allanwang.kau.internal.KauBaseActivity
import ca.allanwang.kau.logging.KauLoggerExtension
import ca.allanwang.kau.mediapicker.scanMedia
@@ -177,7 +176,8 @@ class ImageActivity : KauBaseActivity() {
L.v { "Launching with true url $result" }
result
}
- binding = DataBindingUtil.setContentView(this, R.layout.activity_image)
+ binding = ActivityImageBinding.inflate(layoutInflater)
+ setContentView(binding.root)
binding.onCreate()
tempFile = File(cacheDir(this), imageHash)
launch(CoroutineExceptionHandler { _, throwable -> loadError(throwable) }) {