adding release notes
This commit is contained in:
parent
7816bdab26
commit
0dfd868d71
2 changed files with 16 additions and 0 deletions
|
@ -14,6 +14,7 @@ import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
|
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
|
||||||
import com.simplemobiletools.commons.helpers.LICENSE_MULTISELECT
|
import com.simplemobiletools.commons.helpers.LICENSE_MULTISELECT
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
|
import com.simplemobiletools.commons.models.Release
|
||||||
import com.simplemobiletools.commons.views.Breadcrumbs
|
import com.simplemobiletools.commons.views.Breadcrumbs
|
||||||
import com.simplemobiletools.filemanager.BuildConfig
|
import com.simplemobiletools.filemanager.BuildConfig
|
||||||
import com.simplemobiletools.filemanager.PATH
|
import com.simplemobiletools.filemanager.PATH
|
||||||
|
@ -57,6 +58,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
||||||
private fun tryInitFileManager() {
|
private fun tryInitFileManager() {
|
||||||
if (hasWriteStoragePermission()) {
|
if (hasWriteStoragePermission()) {
|
||||||
initRootFileManager()
|
initRootFileManager()
|
||||||
|
checkWhatsNewDialog()
|
||||||
} else {
|
} else {
|
||||||
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), STORAGE_PERMISSION)
|
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), STORAGE_PERMISSION)
|
||||||
}
|
}
|
||||||
|
@ -152,4 +154,11 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
||||||
mBasePath = pickedPath
|
mBasePath = pickedPath
|
||||||
openPath(pickedPath)
|
openPath(pickedPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun checkWhatsNewDialog() {
|
||||||
|
arrayListOf<Release>().apply {
|
||||||
|
add(Release(26, R.string.release_26))
|
||||||
|
checkWhatsNew(this, BuildConfig.VERSION_CODE)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
7
app/src/main/res/values/donottranslate.xml
Normal file
7
app/src/main/res/values/donottranslate.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Release notes -->
|
||||||
|
<string name="release_26">Added color customization</string>
|
||||||
|
|
||||||
|
</resources>
|
Loading…
Reference in a new issue