1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2025-09-14 20:59:42 +02:00
This commit is contained in:
Gregor Santner 2016-12-16 04:04:53 +01:00
parent 19ac40c5b3
commit fe91853ec3
No known key found for this signature in database
GPG key ID: 2AEB822A5CF48C9F

View file

@ -170,20 +170,7 @@ public class AppSettings {
setString(prefPod, R.string.pref_key__podprofile_name, name);
}
// TODO: Remove legacy at some time ;)
private void upgradeLegacyPoddomain() {
String legacy = getString(prefPod, R.string.pref_key__poddomain_legacy, "");
if (!legacy.equals("")) {
DiasporaPod pod = new DiasporaPod();
pod.setName(legacy);
pod.getPodUrls().add(new DiasporaPodUrl().setHost(legacy));
setPod(pod);
}
}
public DiasporaPod getPod() {
upgradeLegacyPoddomain();
if (currentPod0Cached == null) {
String pref = getString(prefPod, R.string.pref_key__current_pod_0, "");
@ -206,7 +193,6 @@ public class AppSettings {
}
public boolean hasPod() {
upgradeLegacyPoddomain();
return !getString(prefPod, R.string.pref_key__current_pod_0, "").equals("");
}