Add telegram chat link to the app.

pull/55/head
Fox2Code 2 years ago
parent b5b16d9981
commit 8995f2757c

@ -122,6 +122,11 @@ public class SettingsActivity extends CompatActivity {
"https://github.com/Fox2Code/FoxMagiskModuleManager");
return true;
});
findPreference("pref_support").setOnPreferenceClickListener(p -> {
devModeStep = 0;
IntentHelper.openUrl(p.getContext(), "https://t.me/Fox2Code_Chat");
return true;
});
findPreference("pref_show_licenses").setOnPreferenceClickListener(p -> {
devModeStep = devModeStep == 1 ? 2 : 0;
openFragment(libsBuilder.supportFragment(), R.string.licenses);

@ -93,6 +93,11 @@
app:icon="@drawable/ic_github"
app:title="@string/source_code"
app:singleLineTitle="false" />
<Preference
app:key="pref_support"
app:icon="@drawable/ic_baseline_telegram_24"
app:title="@string/support"
app:singleLineTitle="false" />
<Preference
app:key="pref_show_licenses"
app:icon="@drawable/ic_baseline_info_24"

Loading…
Cancel
Save