update commons to 4.2.2

This commit is contained in:
tibbi 2018-06-16 23:31:53 +02:00
parent ec7a5482b5
commit df9461a81b
3 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ ext {
}
dependencies {
implementation 'com.simplemobiletools:commons:4.2.1'
implementation 'com.simplemobiletools:commons:4.2.2'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'it.sephiroth.android.exif:library:1.0.1'

View file

@ -287,7 +287,7 @@ class PhotoFragment : ViewPagerFragment() {
}
private fun addZoomableView() {
if (!context!!.config.replaceZoomableImages && medium.isImage() && isFragmentVisible && view.subsampling_view.isGone() && !medium.isDng()) {
if (!context!!.config.replaceZoomableImages && medium.isImage() && isFragmentVisible && view.subsampling_view.isGone() && !medium.isRaw()) {
ViewPagerActivity.wasDecodedByGlide = false
view.subsampling_view.apply {
maxScale = 10f

View file

@ -6,7 +6,7 @@ import android.arch.persistence.room.Index
import android.arch.persistence.room.PrimaryKey
import com.simplemobiletools.commons.extensions.formatDate
import com.simplemobiletools.commons.extensions.formatSize
import com.simplemobiletools.commons.extensions.isDng
import com.simplemobiletools.commons.extensions.isRaw
import com.simplemobiletools.commons.helpers.SORT_BY_DATE_MODIFIED
import com.simplemobiletools.commons.helpers.SORT_BY_NAME
import com.simplemobiletools.commons.helpers.SORT_BY_PATH
@ -37,7 +37,7 @@ data class Medium(
fun isVideo() = type == TYPE_VIDEOS
fun isDng() = path.isDng()
fun isRaw() = path.isRaw()
fun getBubbleText(sorting: Int) = when {
sorting and SORT_BY_NAME != 0 -> name