Skip to content

Commit

Permalink
Merge pull request #89 from Daviteusz/patch-1
Browse files Browse the repository at this point in the history
Update support link to Androidacy chat
  • Loading branch information
androidacy-user authored Nov 7, 2023
2 parents 0b6dd69 + 39bd418 commit 43fc600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/kotlin/com/fox2code/mmm/settings/InfoFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ class InfoFragment : PreferenceFragmentCompat() {
linkClickable = findPreference("pref_support")
linkClickable!!.onPreferenceClickListener =
Preference.OnPreferenceClickListener { p: Preference ->
IntentHelper.openUrl(p.context, "https://t.me/Fox2Code_Chat")
IntentHelper.openUrl(p.context, "https://t.me/androidacy_discussions")
true
}
linkClickable.onPreferenceLongClickListener =
LongClickablePreference.OnPreferenceLongClickListener { _: Preference? ->
val toastText = requireContext().getString(R.string.link_copied)
clipboard.setPrimaryClip(
ClipData.newPlainText(
toastText, "https://t.me/Fox2Code_Chat"
toastText, "https://t.me/androidacy_discussions"
)
)
Toast.makeText(requireContext(), toastText, Toast.LENGTH_SHORT).show()
Expand All @@ -215,4 +215,4 @@ class InfoFragment : PreferenceFragmentCompat() {
true
}
}
}
}

0 comments on commit 43fc600

Please sign in to comment.