mirror of
https://github.com/gsantner/dandelion
synced 2025-09-14 20:59:42 +02:00
This commit is contained in:
parent
19ac40c5b3
commit
fe91853ec3
1 changed files with 0 additions and 14 deletions
|
@ -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("");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue