rename resolution to imageResolution

This commit is contained in:
tibbi 2016-10-16 17:47:18 +02:00
parent 23eb81b056
commit 259ec1a0e7
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class PropertiesDialog : DialogFragment() {
} else if (mItem.isImage()) {
properties_resolution_label.visibility = View.VISIBLE
properties_resolution.visibility = View.VISIBLE
properties_resolution.text = mItem.resolution
properties_resolution.text = mItem.imageResolution
} else if (mItem.isAudio(context)) {
properties_duration_label.visibility = View.VISIBLE
properties_duration.visibility = View.VISIBLE

View File

@ -59,7 +59,7 @@ class FileDirItem(val path: String, val name: String, val isDirectory: Boolean,
return getFormattedDuration((timeInMillisec / 1000).toInt())
}
val resolution: String
val imageResolution: String
get () {
val bitmap: Bitmap? = BitmapFactory.decodeFile(path)
if (bitmap == null)