aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-09-23 21:35:11 -0700
committerScott Jackson <daneren2005@gmail.com>2016-09-23 21:35:11 -0700
commit1762b3c9428c761980662984e6b682e66de80ace (patch)
tree55288e8b39e40d016970261fa7c886067c04a96c /app/src/main
parentede4d2d49ada1845bab4db12c48cc6fd28f7c73a (diff)
downloaddsub-1762b3c9428c761980662984e6b682e66de80ace.tar.gz
dsub-1762b3c9428c761980662984e6b682e66de80ace.tar.bz2
dsub-1762b3c9428c761980662984e6b682e66de80ace.zip
Fix error when removing and then immediately adding server
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
index ad064d01..d5ba25f5 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
@@ -431,6 +431,7 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared
for (ServerSettings ss : serverSettings.values()) {
if(!ss.update()) {
serversCategory.removePreference(ss.getScreen());
+ serverCount--;
}
}
}