mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
fix: resolve compilation errors
This commit is contained in:
parent
632d8f6804
commit
6fa7928dee
1 changed files with 0 additions and 2 deletions
|
|
@ -13,8 +13,6 @@ object ConfigUtils {
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
private fun Context.getVersionName(): String? =
|
private fun Context.getVersionName(): String? =
|
||||||
try {
|
|
||||||
private fun Context.getVersionName(): String =
|
|
||||||
try {
|
try {
|
||||||
packageManager.getPackageInfo(packageName, 0).versionName ?: BuildConfig.VERSION_NAME
|
packageManager.getPackageInfo(packageName, 0).versionName ?: BuildConfig.VERSION_NAME
|
||||||
} catch (e: PackageManager.NameNotFoundException) {
|
} catch (e: PackageManager.NameNotFoundException) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue