show the new MD5 sum at Properties only at the file manager

This commit is contained in:
tibbi 2020-09-26 09:49:07 +02:00
parent 83f186e728
commit 21efeb54cc
2 changed files with 8 additions and 6 deletions

View file

@ -6,7 +6,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.30.14'
propVersionName = '5.30.15'
kotlin_version = '1.4.10'
}

View file

@ -140,11 +140,13 @@ class PropertiesDialog() {
return
}
addProperty(R.string.md5, "", R.id.properties_md5)
ensureBackgroundThread {
val md5 = File(path).md5()
activity.runOnUiThread {
view.findViewById<TextView>(R.id.properties_md5).property_value.text = md5
if (activity.baseConfig.appId.removeSuffix(".debug") == "com.simplemobiletools.filemanager.pro") {
addProperty(R.string.md5, "", R.id.properties_md5)
ensureBackgroundThread {
val md5 = File(path).md5()
activity.runOnUiThread {
view.findViewById<TextView>(R.id.properties_md5).property_value.text = md5
}
}
}
}