Skip to content

Commit 0dfd868

Browse files
committed
adding release notes
1 parent 7816bda commit 0dfd868

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import com.simplemobiletools.commons.extensions.*
1414
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
1515
import com.simplemobiletools.commons.helpers.LICENSE_MULTISELECT
1616
import com.simplemobiletools.commons.models.FileDirItem
17+
import com.simplemobiletools.commons.models.Release
1718
import com.simplemobiletools.commons.views.Breadcrumbs
1819
import com.simplemobiletools.filemanager.BuildConfig
1920
import com.simplemobiletools.filemanager.PATH
@@ -57,6 +58,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
5758
private fun tryInitFileManager() {
5859
if (hasWriteStoragePermission()) {
5960
initRootFileManager()
61+
checkWhatsNewDialog()
6062
} else {
6163
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), STORAGE_PERMISSION)
6264
}
@@ -152,4 +154,11 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
152154
mBasePath = pickedPath
153155
openPath(pickedPath)
154156
}
157+
158+
private fun checkWhatsNewDialog() {
159+
arrayListOf<Release>().apply {
160+
add(Release(26, R.string.release_26))
161+
checkWhatsNew(this, BuildConfig.VERSION_CODE)
162+
}
163+
}
155164
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<!-- Release notes -->
5+
<string name="release_26">Added color customization</string>
6+
7+
</resources>

0 commit comments

Comments
 (0)