From aeacf941fb16ca4d368c2221e67b7949e57f6d9a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 25 Feb 2024 22:46:14 +0100 Subject: [PATCH] (Android) Appended the Android version code to the version on the main menu --- es-app/src/guis/GuiMenu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index f4ea7beec..b43fc2dbd 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -2102,8 +2102,13 @@ void GuiMenu::addVersionInfo() #if defined(IS_PRERELEASE) mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + " (Built " + __DATE__ + ")"); +#else +#if defined(__ANDROID__) + mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" + + std::to_string(ANDROID_VERSION_CODE)); #else mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING)); +#endif #endif mVersion.setHorizontalAlignment(ALIGN_CENTER);