summaryrefslogtreecommitdiff
path: root/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2019-04-20 21:59:04 +0200
committerJoe Robinson <joe@lc8n.com>2019-04-20 21:59:04 +0200
commit0f8b43f3cd1113b0f214a721fbc62d64c6eb6609 (patch)
tree8adce176fe6663a015377e174add1416f43cd3d6 /app/src/main/java/uk/co/blatech/blaupload3/model/File.kt
parent8322d7cf510b22ee20d310013ec71dd4f39442bb (diff)
Use Picasso and TouchImageView for caching and zoomingHEADmaster
Diffstat (limited to 'app/src/main/java/uk/co/blatech/blaupload3/model/File.kt')
-rw-r--r--app/src/main/java/uk/co/blatech/blaupload3/model/File.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt b/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt
index 677b852..70c4b34 100644
--- a/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt
+++ b/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt
@@ -1,13 +1,14 @@
package uk.co.blatech.blaupload3.model
+import android.net.Uri
import java.net.URI
import java.text.SimpleDateFormat
import java.util.*
data class File (var filename: String, var type: String, var modified: Long, var size: Long) {
- var url = URI("http://wupload.of.je/$filename")
- var thumb_url = URI("http://wupload.of.je/thumbs/$filename")
+ var url = Uri.parse("http://wupload.of.je/$filename")
+ var thumb_url = Uri.parse("http://wupload.of.je/thumbs/$filename")
var modified_formatted = SimpleDateFormat("dd/MM/yyyy mm:HH:ss").format(Date(modified*1000))
val units = arrayOf<String>("B", "kB", "MB", "GB", "TB")
var size_lambda = { size : Long ->