]> cvs.zerfleddert.de Git - FreeShisen/blobdiff - src/de/cwde/freeshisen/ShisenShoActivity.java
heavy optimizations.
[FreeShisen] / src / de / cwde / freeshisen / ShisenShoActivity.java
index 376e054c58799d5465d79ee13aacfd75a2af53d9..311c7b126be34799e60a0b654d0ab875667fcd66 100644 (file)
@@ -92,8 +92,9 @@ public class ShisenShoActivity extends Activity {
                PackageInfo pInfo;
                try {
                        pInfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_META_DATA);
                PackageInfo pInfo;
                try {
                        pInfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_META_DATA);
-                       String aboutTitle = String.format("About %s", getString(R.string.app_name));
-                       String versionString = String.format("Version: %s", pInfo.versionName);
+                       String appname = getString(R.string.app_name);
+                       String aboutTitle = "About " + appname;
+                       String versionString = appname + " "+ pInfo.versionName;
                        String aboutText = getString(R.string.aboutText);
 
                        // Set up the TextView
                        String aboutText = getString(R.string.aboutText);
 
                        // Set up the TextView
@@ -104,7 +105,7 @@ public class ShisenShoActivity extends Activity {
                        // Set some padding
                        message.setPadding(5, 5, 5, 5);
                        // Set up the final string
                        // Set some padding
                        message.setPadding(5, 5, 5, 5);
                        // Set up the final string
-                       message.setText(versionString + "\n" + s);
+                       message.setText(versionString + s);
                        // Now linkify the text
                        Linkify.addLinks(message, Linkify.ALL);
 
                        // Now linkify the text
                        Linkify.addLinks(message, Linkify.ALL);
 
@@ -112,7 +113,7 @@ public class ShisenShoActivity extends Activity {
                        .setTitle(aboutTitle)
                        .setCancelable(true)
                        .setIcon(R.drawable.icon)
                        .setTitle(aboutTitle)
                        .setCancelable(true)
                        .setIcon(R.drawable.icon)
-                       .setPositiveButton(getString(android.R.string.ok), null)
+                       .setPositiveButton(android.R.string.ok, null)
                        .setView(message).create()
                        .show();
                } catch (NameNotFoundException e) {
                        .setView(message).create()
                        .show();
                } catch (NameNotFoundException e) {
Impressum, Datenschutz