aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-01-11 21:37:37 -0800
committerAllan Wang <me@allanwang.ca>2021-01-11 21:37:37 -0800
commit520b1b98f589a890b26b067fa281b82440a7e040 (patch)
tree6cce4dfbd8f7e249c81d2897b26ebc651dd755ae
parent9cb8215f5397cf5db390efce794012205022b772 (diff)
downloadfrost-520b1b98f589a890b26b067fa281b82440a7e040.tar.gz
frost-520b1b98f589a890b26b067fa281b82440a7e040.tar.bz2
frost-520b1b98f589a890b26b067fa281b82440a7e040.zip
Add github link in place of email support
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/SettingsActivity.kt2
-rw-r--r--app/src/main/res/menu/menu_settings.xml6
-rw-r--r--app/src/main/res/values/strings_no_translate.xml1
3 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/SettingsActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/SettingsActivity.kt
index d086b24c..aac714ce 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/SettingsActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/SettingsActivity.kt
@@ -245,6 +245,7 @@ class SettingsActivity : KPrefActivity() {
toolbar.tint(prefs.iconColor)
setMenuIcons(
menu, prefs.iconColor,
+ R.id.action_github to CommunityMaterial.Icon2.cmd_github,
R.id.action_changelog to GoogleMaterial.Icon.gmd_info
)
return true
@@ -252,6 +253,7 @@ class SettingsActivity : KPrefActivity() {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
+ R.id.action_github -> startLink(R.string.github_url)
R.id.action_changelog -> frostChangelog()
else -> return super.onOptionsItemSelected(item)
}
diff --git a/app/src/main/res/menu/menu_settings.xml b/app/src/main/res/menu/menu_settings.xml
index b5d257ee..5832bf4b 100644
--- a/app/src/main/res/menu/menu_settings.xml
+++ b/app/src/main/res/menu/menu_settings.xml
@@ -4,6 +4,12 @@
tools:context="com.pitchedapps.frost.activities.SettingsActivity">
<item
+ android:id="@+id/action_github"
+ android:orderInCategory="100"
+ android:title="@string/github"
+ app:showAsAction="ifRoom" />
+
+ <item
android:id="@+id/action_changelog"
android:orderInCategory="200"
android:title="@string/kau_changelog"
diff --git a/app/src/main/res/values/strings_no_translate.xml b/app/src/main/res/values/strings_no_translate.xml
index 250799e9..04e49858 100644
--- a/app/src/main/res/values/strings_no_translate.xml
+++ b/app/src/main/res/values/strings_no_translate.xml
@@ -1,6 +1,7 @@
<resources>
<string name="dev_name" translatable="false">Pitched Apps</string>
<string name="translation_url" translatable="false">https://crwd.in/frost-for-facebook</string>
+ <string name="github" translatable="false">GitHub</string>
<string name="github_url" translatable="false">https://github.com/AllanWang/Frost-for-Facebook</string>
<string name="github_downloads_url" translatable="false">https://github.com/AllanWang/Frost-for-Facebook/releases</string>
<string name="fdroid_url" translatable="false">https://f-droid.org/en/packages/com.pitchedapps.frost</string>