mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-08 20:12:39 +01:00
Add github link in place of email support
This commit is contained in:
parent
9cb8215f53
commit
520b1b98f5
@ -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)
|
||||
}
|
||||
|
@ -3,6 +3,12 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
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"
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user