update commons to 2.5.4

This commit is contained in:
tibbi 2017-01-25 22:02:20 +01:00
parent 992950f2a7
commit d6f77febfe
4 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ android {
}
dependencies {
compile 'com.simplemobiletools:commons:2.5.3'
compile 'com.simplemobiletools:commons:2.5.4'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'

View file

@ -100,7 +100,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
}
private fun tryloadGallery() {
if (hasStoragePermission()) {
if (hasWriteStoragePermission()) {
if (config.showAll)
showAllMedia()
else

View file

@ -66,7 +66,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
}
private fun tryloadGallery() {
if (hasStoragePermission()) {
if (hasWriteStoragePermission()) {
val dirName = getHumanizedFilename(mPath)
title = if (mShowAll) resources.getString(R.string.all_folders) else dirName
getMedia()

View file

@ -43,7 +43,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_medium)
if (!hasStoragePermission()) {
if (!hasWriteStoragePermission()) {
finish()
return
}
@ -84,7 +84,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
override fun onResume() {
super.onResume()
if (!hasStoragePermission()) {
if (!hasWriteStoragePermission()) {
finish()
}
supportActionBar?.setBackgroundDrawable(resources.getDrawable(R.drawable.actionbar_gradient_background))