update commons to 2.7.6
This commit is contained in:
parent
b8c7493beb
commit
b065a5a9a0
|
@ -33,7 +33,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.simplemobiletools:commons:2.6.0'
|
||||
compile 'com.simplemobiletools:commons:2.7.6'
|
||||
compile 'joda-time:joda-time:2.9.1'
|
||||
compile 'com.facebook.stetho:stetho:1.4.1'
|
||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||
|
|
|
@ -68,6 +68,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||
setContentView(R.layout.activity_main)
|
||||
calendar_fab.setOnClickListener { launchNewEventIntent() }
|
||||
checkWhatsNewDialog()
|
||||
storeStoragePaths()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
@ -252,7 +253,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||
val outputStream: OutputStream?
|
||||
|
||||
if (needsStupidWritePermissions(destination.absolutePath)) {
|
||||
var document = getFileDocument(destination.absolutePath, config.treeUri)
|
||||
var document = getFileDocument(destination.absolutePath, config.treeUri) ?: return@Thread
|
||||
if (!destination.exists()) {
|
||||
document = document.createFile("", destination.name)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue