Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 8995f27

Browse files
committed
Add telegram chat link to the app.
1 parent b5b16d9 commit 8995f27

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
122122
"https://github.com/Fox2Code/FoxMagiskModuleManager");
123123
return true;
124124
});
125+
findPreference("pref_support").setOnPreferenceClickListener(p -> {
126+
devModeStep = 0;
127+
IntentHelper.openUrl(p.getContext(), "https://t.me/Fox2Code_Chat");
128+
return true;
129+
});
125130
findPreference("pref_show_licenses").setOnPreferenceClickListener(p -> {
126131
devModeStep = devModeStep == 1 ? 2 : 0;
127132
openFragment(libsBuilder.supportFragment(), R.string.licenses);

app/src/main/res/xml/root_preferences.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
app:icon="@drawable/ic_github"
9494
app:title="@string/source_code"
9595
app:singleLineTitle="false" />
96+
<Preference
97+
app:key="pref_support"
98+
app:icon="@drawable/ic_baseline_telegram_24"
99+
app:title="@string/support"
100+
app:singleLineTitle="false" />
96101
<Preference
97102
app:key="pref_show_licenses"
98103
app:icon="@drawable/ic_baseline_info_24"

0 commit comments

Comments
 (0)