mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-04 11:24:31 +02:00
This commit is contained in:
parent
077ee4381a
commit
55af392706
5 changed files with 29 additions and 33 deletions
|
@ -48,6 +48,15 @@ class SettingsFragmentMeta : Fragment(), UIObject {
|
|||
|
||||
override fun setOnClicks() {
|
||||
|
||||
fun bindURL(view: View, urlRes: Int) {
|
||||
view.setOnClickListener {
|
||||
openInBrowser(
|
||||
getString(urlRes),
|
||||
requireContext()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
binding.settingsMetaButtonViewTutorial.setOnClickListener {
|
||||
openTutorial(requireContext())
|
||||
}
|
||||
|
@ -70,12 +79,7 @@ class SettingsFragmentMeta : Fragment(), UIObject {
|
|||
|
||||
|
||||
// view code
|
||||
binding.settingsMetaButtonViewCode.setOnClickListener {
|
||||
openInBrowser(
|
||||
getString(R.string.settings_meta_link_github),
|
||||
requireContext()
|
||||
)
|
||||
}
|
||||
bindURL(binding.settingsMetaButtonViewCode, R.string.settings_meta_link_github)
|
||||
|
||||
// report a bug
|
||||
binding.settingsMetaButtonReportBug.setOnClickListener {
|
||||
|
@ -111,37 +115,19 @@ class SettingsFragmentMeta : Fragment(), UIObject {
|
|||
}
|
||||
|
||||
// join chat
|
||||
binding.settingsMetaButtonJoinChat.setOnClickListener {
|
||||
openInBrowser(
|
||||
getString(R.string.settings_meta_chat_url),
|
||||
requireContext()
|
||||
)
|
||||
}
|
||||
|
||||
bindURL(binding.settingsMetaButtonJoinChat, R.string.settings_meta_chat_url)
|
||||
|
||||
// contact developer
|
||||
binding.settingsMetaButtonContact.setOnClickListener {
|
||||
openInBrowser(
|
||||
getString(R.string.settings_meta_contact_url),
|
||||
requireContext()
|
||||
)
|
||||
}
|
||||
// bindURL(binding.settingsMetaButtonContact, R.string.settings_meta_contact_url)
|
||||
|
||||
// contact fork developer
|
||||
binding.settingsMetaButtonForkContact.setOnClickListener {
|
||||
openInBrowser(
|
||||
getString(R.string.settings_meta_fork_contact_url),
|
||||
requireContext()
|
||||
)
|
||||
}
|
||||
bindURL(binding.settingsMetaButtonForkContact, R.string.settings_meta_fork_contact_url)
|
||||
|
||||
// donate
|
||||
bindURL(binding.settingsMetaButtonDonate, R.string.settings_meta_donate_url)
|
||||
|
||||
// privacy policy
|
||||
binding.settingsMetaButtonPrivacy.setOnClickListener {
|
||||
openInBrowser(
|
||||
getString(R.string.settings_meta_privacy_url),
|
||||
requireContext()
|
||||
)
|
||||
}
|
||||
bindURL(binding.settingsMetaButtonPrivacy, R.string.settings_meta_privacy_url)
|
||||
|
||||
// legal info
|
||||
binding.settingsMetaButtonLicenses.setOnClickListener {
|
||||
|
|
|
@ -59,12 +59,12 @@
|
|||
android:text="@string/settings_meta_join_chat"
|
||||
android:textAllCaps="false" />
|
||||
|
||||
<Button
|
||||
<!--<Button
|
||||
android:id="@+id/settings_meta_button_contact"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/settings_meta_contact"
|
||||
android:textAllCaps="false" />
|
||||
android:textAllCaps="false" />-->
|
||||
|
||||
<Button
|
||||
android:id="@+id/settings_meta_button_fork_contact"
|
||||
|
@ -73,6 +73,13 @@
|
|||
android:text="@string/settings_meta_fork_contact"
|
||||
android:textAllCaps="false" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/settings_meta_button_donate"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/settings_meta_donate"
|
||||
android:textAllCaps="false" />
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64sp" />
|
||||
|
|
|
@ -129,6 +129,7 @@
|
|||
<string name="dialog_report_bug_create_report">Report erstellen</string>
|
||||
<string name="settings_meta_fork_contact">Entwickler des Fork kontaktieren</string>
|
||||
<string name="settings_meta_join_chat">Dem µLauncher-Chat beitreten</string>
|
||||
<string name="settings_meta_donate">Spenden</string>
|
||||
<string name="settings_meta_privacy">Datenschutzerklärung</string>
|
||||
<!--
|
||||
-
|
||||
|
|
|
@ -164,6 +164,7 @@
|
|||
<string name="settings_meta_privacy_url" translatable="false">https://s.jrpie.de/android-legal</string>
|
||||
<string name="settings_meta_contact_url" translatable="false">https://www.finnmglas.com/contact/</string>
|
||||
<string name="settings_meta_chat_url" translatable="false">https://s.jrpie.de/launcher-chat</string>
|
||||
<string name="settings_meta_donate_url" translatable="false">https://s.jrpie.de/launcher-donate</string>
|
||||
|
||||
<!--
|
||||
-
|
||||
|
|
|
@ -210,6 +210,7 @@
|
|||
|
||||
<string name="settings_meta_fork_contact">Contact the developer of the fork</string>
|
||||
<string name="settings_meta_join_chat">Join µLauncher chat</string>
|
||||
<string name="settings_meta_donate">Donate</string>
|
||||
|
||||
<string name="settings_meta_privacy">Privacy Policy</string>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue