rename resolution to imageResolution
This commit is contained in:
parent
23eb81b056
commit
259ec1a0e7
|
@ -43,7 +43,7 @@ class PropertiesDialog : DialogFragment() {
|
||||||
} else if (mItem.isImage()) {
|
} else if (mItem.isImage()) {
|
||||||
properties_resolution_label.visibility = View.VISIBLE
|
properties_resolution_label.visibility = View.VISIBLE
|
||||||
properties_resolution.visibility = View.VISIBLE
|
properties_resolution.visibility = View.VISIBLE
|
||||||
properties_resolution.text = mItem.resolution
|
properties_resolution.text = mItem.imageResolution
|
||||||
} else if (mItem.isAudio(context)) {
|
} else if (mItem.isAudio(context)) {
|
||||||
properties_duration_label.visibility = View.VISIBLE
|
properties_duration_label.visibility = View.VISIBLE
|
||||||
properties_duration.visibility = View.VISIBLE
|
properties_duration.visibility = View.VISIBLE
|
||||||
|
|
|
@ -59,7 +59,7 @@ class FileDirItem(val path: String, val name: String, val isDirectory: Boolean,
|
||||||
return getFormattedDuration((timeInMillisec / 1000).toInt())
|
return getFormattedDuration((timeInMillisec / 1000).toInt())
|
||||||
}
|
}
|
||||||
|
|
||||||
val resolution: String
|
val imageResolution: String
|
||||||
get () {
|
get () {
|
||||||
val bitmap: Bitmap? = BitmapFactory.decodeFile(path)
|
val bitmap: Bitmap? = BitmapFactory.decodeFile(path)
|
||||||
if (bitmap == null)
|
if (bitmap == null)
|
||||||
|
|
Loading…
Reference in New Issue