diff --git a/astrid/res/values/strings-core.xml b/astrid/res/values/strings-core.xml index 6215cc0f2..19d0e7968 100644 --- a/astrid/res/values/strings-core.xml +++ b/astrid/res/values/strings-core.xml @@ -430,17 +430,10 @@ About Astrid - -Astrid Tasks\n\n + +Current version: %s\n\n -Current version: %s\n\n - -Astrid is open-source and proudly maintained by Todoroo, Inc.\n\n - -Source: http://github.com/todoroo/astrid\n -Privacy Policy: http://www.todoroo.com/privacy\n -Terms of Use: http://www.todoroo.com/terms\n -Visit http://weloveastrid.com for more information, to add translations or help make Astrid better! +Astrid is open-source and proudly maintained by Todoroo, Inc. diff --git a/astrid/res/xml/preferences.xml b/astrid/res/xml/preferences.xml index cbc31da70..3ecdc13c8 100644 --- a/astrid/res/xml/preferences.xml +++ b/astrid/res/xml/preferences.xml @@ -3,7 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/EPr_title"> - + ").append(r.getString(R.string.app_name)).append("
"). + append(r.getString(R.string.p_about_text, versionName).replace("\n", "
")).append("

"). + append("Source Code
"). + append("Privacy Policy
"). + append("Terms of Use

"). + append("Visit weloveastrid for more information, to add translations or help make Astrid better!"); + final AlertDialog.Builder d = new AlertDialog.Builder(activity); - final TextView t = new TextView(activity); - t.setText((new Formatter()).format(r.getString(R.string.p_about_text), versionName).toString()); - t.setAutoLinkMask(Linkify.ALL); - d.setView(t); + + Spanned body = Html.fromHtml(aboutText.toString()); + + d.setIcon(android.R.drawable.ic_dialog_info); + d.setMessage(body); d.setTitle(r.getString(R.string.p_about)); d.show(); } diff --git a/astrid/src/com/todoroo/astrid/activity/EditPreferences.java b/astrid/src/com/todoroo/astrid/activity/EditPreferences.java index d403bf929..b80139bff 100644 --- a/astrid/src/com/todoroo/astrid/activity/EditPreferences.java +++ b/astrid/src/com/todoroo/astrid/activity/EditPreferences.java @@ -108,12 +108,15 @@ public class EditPreferences extends TodorooPreferences { addPreferenceListeners(); } - private void showAbout () - { + /** Show about dialog */ + private void showAbout () { + String version = "unknown"; //$NON-NLS-1$ try { - About.showAbout(this, getResources(), getPackageManager().getPackageInfo("com.timsu.astrid", 0).versionName); + version = getPackageManager().getPackageInfo(Constants.PACKAGE, 0).versionName; } catch (NameNotFoundException e) { + // sadness } + About.showAbout(this, version); } private void addPluginPreferences(PreferenceScreen screen) {