Fix changelog version logic

This commit is contained in:
moezbhatti
2019-09-10 00:02:02 -04:00
parent 12dc500eed
commit 6614089486
5 changed files with 27 additions and 28 deletions
@@ -66,3 +66,6 @@ fun Context.makeToast(text: String, duration: Int = Toast.LENGTH_SHORT) {
fun Context.isInstalled(packageName: String): Boolean {
return tryOrNull(false) { packageManager.getApplicationInfo(packageName, 0).enabled } ?: false
}
val Context.versionCode: Int
get() = packageManager.getPackageInfo(packageName, 0).versionCode