mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-17 22:08:00 +01:00
update commons to 2.5.4
This commit is contained in:
parent
992950f2a7
commit
d6f77febfe
4 changed files with 5 additions and 5 deletions
|
@ -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'
|
||||
|
|
|
@ -100,7 +100,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
}
|
||||
|
||||
private fun tryloadGallery() {
|
||||
if (hasStoragePermission()) {
|
||||
if (hasWriteStoragePermission()) {
|
||||
if (config.showAll)
|
||||
showAllMedia()
|
||||
else
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue