Use BuildConfig for version name
This commit is contained in:
parent
2d63aa9951
commit
686c281a6f
|
|
@ -20,7 +20,6 @@
|
|||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
-keep class org.meowcat.edxposed.manager.util.json.**{public *; }
|
||||
-keep class org.meowcat.edxposed.manager.xposed.**{public *; }
|
||||
-keep class de.robv.android.xposed.installer.**{public *; }
|
||||
-repackageclasses ''
|
||||
-allowaccessmodification
|
||||
-optimizationpasses 9
|
||||
|
|
@ -46,12 +46,7 @@ public class AboutActivity extends BaseActivity {
|
|||
.setMessage(HtmlCompat.fromHtml(changes, HtmlCompat.FROM_HTML_MODE_LEGACY))
|
||||
.setPositiveButton(android.R.string.ok, null).show());
|
||||
}
|
||||
|
||||
try {
|
||||
String version = getPackageManager().getPackageInfo(packageName, 0).versionName;
|
||||
binding.appVersion.setText(version);
|
||||
} catch (PackageManager.NameNotFoundException ignored) {
|
||||
}
|
||||
binding.appVersion.setText(BuildConfig.VERSION_NAME);
|
||||
|
||||
binding.licensesView.setOnClickListener(v12 -> startActivity(new Intent(this, OssLicensesMenuActivity.class)));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue