diff options
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/activities/SettingsActivity.kt | 2 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_settings.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/values/strings_no_translate.xml | 1 |
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> |