diff options
Diffstat (limited to '')
-rw-r--r-- | aboutit/src/main/java/com/snilius/aboutit/AboutIt.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/aboutit/src/main/java/com/snilius/aboutit/AboutIt.java b/aboutit/src/main/java/com/snilius/aboutit/AboutIt.java index 1a2195f..2bc29c1 100644 --- a/aboutit/src/main/java/com/snilius/aboutit/AboutIt.java +++ b/aboutit/src/main/java/com/snilius/aboutit/AboutIt.java @@ -100,8 +100,11 @@ public class AboutIt { * @return baked version string */ public String getVersionString() { - releaseName = "-"+(releaseName != null?releaseName:(debug?"debug":"")); - return versionName+" ("+versionCode+releaseName+")"; + releaseName = "-" + (releaseName != null ? releaseName : (debug?"debug":"")); + if (releaseName.equals("-")) + return versionName+" ("+versionCode+")"; + else + return versionName+" ("+versionCode+releaseName+")"; } /** |