Skip to content

Commit

Permalink
Merge pull request #3539 from Navid200/Navid_2024_06_14
Browse files Browse the repository at this point in the history
US server setting in the Dex share follow menu
  • Loading branch information
jamorham authored Jun 25, 2024
2 parents b5d38f1 + c340a39 commit 8cc66c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,7 @@ public boolean onPreferenceChange(Preference preference, Object newValue) {

final Preference shFollowUser = findPreference("shfollow_user");
final Preference shFollowPass = findPreference("shfollow_pass");
final Preference shFollowServerUS = findPreference("dex_share_us_acct");

if (collectionType == DexCollectionType.SHFollow) {
final Preference.OnPreferenceChangeListener shFollowListener = new Preference.OnPreferenceChangeListener() {
Expand All @@ -1289,6 +1290,7 @@ public boolean onPreferenceChange(Preference preference, Object newValue) {
try {
shFollowUser.setOnPreferenceChangeListener(shFollowListener);
shFollowPass.setOnPreferenceChangeListener(shFollowListener);
shFollowServerUS.setOnPreferenceChangeListener(shFollowListener);
} catch (Exception e) {
//
}
Expand All @@ -1297,6 +1299,7 @@ public boolean onPreferenceChange(Preference preference, Object newValue) {
try {
collectionCategory.removePreference(shFollowUser);
collectionCategory.removePreference(shFollowPass);
collectionCategory.removePreference(shFollowServerUS);
} catch (Exception e) {
//
}
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/xml/pref_data_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@
android:singleLine="true"
android:summary="Login password for Dex Share Following"
android:title="Share Password" />
<CheckBoxPreference
android:defaultValue="true"
android:key="dex_share_us_acct"
android:summary="Your account and follower app are from the USA"
android:title="US Servers" />

<ListPreference
android:defaultValue="gb"
Expand Down

0 comments on commit 8cc66c1

Please sign in to comment.