update commons to 2.7.6

This commit is contained in:
tibbi 2017-02-28 19:44:40 +01:00
parent b8c7493beb
commit b065a5a9a0
2 changed files with 3 additions and 2 deletions

View File

@ -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'

View File

@ -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)
}