From ab31d15c2a3fb5797e09ba53fdef0a59df7b3594 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Wed, 4 Mar 2015 17:21:00 +0100 Subject: new: link to github changelog --- main/res/layout/about_changes_page.xml | 15 +++++++++++++++ main/res/values/strings.xml | 1 + main/src/cgeo/geocaching/AboutActivity.java | 9 +++++++++ 3 files changed, 25 insertions(+) (limited to 'main') diff --git a/main/res/layout/about_changes_page.xml b/main/res/layout/about_changes_page.xml index 355ce90..04b5ff3 100644 --- a/main/res/layout/about_changes_page.xml +++ b/main/res/layout/about_changes_page.xml @@ -37,6 +37,21 @@ android:textColor="?text_color" android:textColorLink="?text_color_link" android:textSize="12sp" /> + + \ No newline at end of file diff --git a/main/res/values/strings.xml b/main/res/values/strings.xml index 716c6de..a287441 100644 --- a/main/res/values/strings.xml +++ b/main/res/values/strings.xml @@ -373,6 +373,7 @@ Apache License, Version 2.0 Help Please include the following system information when sending a bug report or asking for more information about c:geo: + List of all changes Services diff --git a/main/src/cgeo/geocaching/AboutActivity.java b/main/src/cgeo/geocaching/AboutActivity.java index ffc4b35..a71a988 100644 --- a/main/src/cgeo/geocaching/AboutActivity.java +++ b/main/src/cgeo/geocaching/AboutActivity.java @@ -27,6 +27,7 @@ import android.os.Build; import android.os.Build.VERSION; import android.os.Bundle; import android.view.View; +import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.ScrollView; import android.widget.TextView; @@ -73,6 +74,7 @@ public class AboutActivity extends AbstractViewPagerActivity @InjectView(R.id.changelog_master) protected TextView changeLogMaster; @InjectView(R.id.changelog_release) protected TextView changeLogRelease; + @InjectView(R.id.changelog_github) protected TextView changeLogLink; @Override public ScrollView getDispatchedView(final ViewGroup parentView) { @@ -85,6 +87,13 @@ public class AboutActivity extends AbstractViewPagerActivity } else { changeLogMaster.setMovementMethod(AnchorAwareLinkMovementMethod.getInstance()); } + changeLogLink.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(final View v) { + startUrl("https://github.com/cgeo/cgeo/releases"); + } + }); return view; } -- cgit v1.1