diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-03-04 17:21:00 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-03-04 17:21:00 +0100 |
commit | ab31d15c2a3fb5797e09ba53fdef0a59df7b3594 (patch) | |
tree | 0af7a1ce3779115c0aeb3c7ae4cf0e28b30d2e61 /main | |
parent | 76156d12f1c1f2eb49eea5f63b7a34e0bb4fef0b (diff) | |
download | cgeo-ab31d15c2a3fb5797e09ba53fdef0a59df7b3594.zip cgeo-ab31d15c2a3fb5797e09ba53fdef0a59df7b3594.tar.gz cgeo-ab31d15c2a3fb5797e09ba53fdef0a59df7b3594.tar.bz2 |
new: link to github changelog
Diffstat (limited to 'main')
-rw-r--r-- | main/res/layout/about_changes_page.xml | 15 | ||||
-rw-r--r-- | main/res/values/strings.xml | 1 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/AboutActivity.java | 9 |
3 files changed, 25 insertions, 0 deletions
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" /> + + <TextView + android:id="@+id/changelog_github" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:clickable="true" + android:focusable="true" + android:linksClickable="true" + android:text="@string/changelog_github" + android:textColor="?text_color_link" + android:textColorLink="?text_color_link" + android:textSize="12sp" /> </LinearLayout> </ScrollView>
\ 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 @@ <string name="about_apache_license"><a href="">Apache License, Version 2.0</a></string> <string name="about_help">Help</string> <string name="about_system_include">Please include the following system information when sending a bug report or asking for more information about c:geo:</string> + <string name="changelog_github">List of all changes</string> <!-- settings --> <string name="settings_title_services">Services</string> 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<AboutActivity.Page> @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<AboutActivity.Page> } 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; } |