mirror of
https://github.com/gsantner/dandelion
synced 2024-11-22 04:12:08 +01:00
Update podlist
This commit is contained in:
parent
c550c2474e
commit
64a9d02e7c
4 changed files with 1469 additions and 1444 deletions
|
@ -66,7 +66,15 @@
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
|
||||||
<!--@@@ PODLIST START-->
|
<!--@@@ PODLIST START-->
|
||||||
|
<data android:host="joindiaspora.com" android:scheme="https" />
|
||||||
|
<data android:host="diasporaaqmjixh5.onion" android:scheme="http" />
|
||||||
|
<data android:host="pod.geraspora.de" android:scheme="https" />
|
||||||
|
<data android:host="diasp.org" android:scheme="https" />
|
||||||
|
<data android:host="framasphere.org" android:scheme="https" />
|
||||||
|
<data android:host="nerdpol.ch" android:scheme="https" />
|
||||||
|
<data android:host="despora.de" android:scheme="https" />
|
||||||
|
<data android:host="sechat.org" android:scheme="https" />
|
||||||
|
<data android:host="sechatqpscuj2npx.onion" android:scheme="http" />
|
||||||
<data android:host="austriapod.at" android:scheme="https" />
|
<data android:host="austriapod.at" android:scheme="https" />
|
||||||
<data android:host="berdaguermontes.eu" android:scheme="https" />
|
<data android:host="berdaguermontes.eu" android:scheme="https" />
|
||||||
<data android:host="berlinspora.de" android:scheme="https" />
|
<data android:host="berlinspora.de" android:scheme="https" />
|
||||||
|
@ -74,7 +82,6 @@
|
||||||
<data android:host="community.kanalinseln.de" android:scheme="https" />
|
<data android:host="community.kanalinseln.de" android:scheme="https" />
|
||||||
<data android:host="cryptospora.net" android:scheme="https" />
|
<data android:host="cryptospora.net" android:scheme="https" />
|
||||||
<data android:host="d.consumium.org" android:scheme="https" />
|
<data android:host="d.consumium.org" android:scheme="https" />
|
||||||
<data android:host="despora.de" android:scheme="https" />
|
|
||||||
<data android:host="dia.manuelbichler.at" android:scheme="https" />
|
<data android:host="dia.manuelbichler.at" android:scheme="https" />
|
||||||
<data android:host="dia.myocastor.de" android:scheme="https" />
|
<data android:host="dia.myocastor.de" android:scheme="https" />
|
||||||
<data android:host="diapod.net" android:scheme="https" />
|
<data android:host="diapod.net" android:scheme="https" />
|
||||||
|
@ -86,17 +93,16 @@
|
||||||
<data android:host="diasp.eu.com" android:scheme="https" />
|
<data android:host="diasp.eu.com" android:scheme="https" />
|
||||||
<data android:host="diasp.nl" android:scheme="https" />
|
<data android:host="diasp.nl" android:scheme="https" />
|
||||||
<data android:host="diaspod.de" android:scheme="https" />
|
<data android:host="diaspod.de" android:scheme="https" />
|
||||||
|
<data android:host="diaspora-fr.org" android:scheme="https" />
|
||||||
<data android:host="diaspora.alfter.us" android:scheme="https" />
|
<data android:host="diaspora.alfter.us" android:scheme="https" />
|
||||||
<data android:host="diaspora.bohramt.de" android:scheme="https" />
|
<data android:host="diaspora.bohramt.de" android:scheme="https" />
|
||||||
<data android:host="diasporabrazil.org" android:scheme="https" />
|
|
||||||
<data android:host="diasporabr.com.br" android:scheme="https" />
|
|
||||||
<data android:host="diaspora.com.ar" android:scheme="https" />
|
<data android:host="diaspora.com.ar" android:scheme="https" />
|
||||||
<data android:host="diaspora.deadhexagon.com" android:scheme="https" />
|
<data android:host="diaspora.deadhexagon.com" android:scheme="https" />
|
||||||
|
<data android:host="diaspora.digi-merc.org" android:scheme="https" />
|
||||||
<data android:host="diaspora.digitalismus.org" android:scheme="https" />
|
<data android:host="diaspora.digitalismus.org" android:scheme="https" />
|
||||||
<data android:host="diaspora.dorf-post.de" android:scheme="https" />
|
<data android:host="diaspora.dorf-post.de" android:scheme="https" />
|
||||||
<data android:host="diaspora.espiritolivre.org" android:scheme="https" />
|
<data android:host="diaspora.espiritolivre.org" android:scheme="https" />
|
||||||
<data android:host="diaspora.fr33.co" android:scheme="https" />
|
<data android:host="diaspora.fr33.co" android:scheme="https" />
|
||||||
<data android:host="diaspora-fr.org" android:scheme="https" />
|
|
||||||
<data android:host="diaspora.horwood.biz" android:scheme="https" />
|
<data android:host="diaspora.horwood.biz" android:scheme="https" />
|
||||||
<data android:host="diaspora.hzsogood.net" android:scheme="https" />
|
<data android:host="diaspora.hzsogood.net" android:scheme="https" />
|
||||||
<data android:host="diaspora.kapper.net" android:scheme="https" />
|
<data android:host="diaspora.kapper.net" android:scheme="https" />
|
||||||
|
@ -104,15 +110,14 @@
|
||||||
<data android:host="diaspora.kosebamse.com" android:scheme="https" />
|
<data android:host="diaspora.kosebamse.com" android:scheme="https" />
|
||||||
<data android:host="diaspora.lebarjack.com" android:scheme="https" />
|
<data android:host="diaspora.lebarjack.com" android:scheme="https" />
|
||||||
<data android:host="diaspora.mazi.tk" android:scheme="https" />
|
<data android:host="diaspora.mazi.tk" android:scheme="https" />
|
||||||
|
<data android:host="diaspora.microdata.co.uk" android:scheme="https" />
|
||||||
<data android:host="diaspora.moosje.nl" android:scheme="https" />
|
<data android:host="diaspora.moosje.nl" android:scheme="https" />
|
||||||
<data android:host="diaspora.net.gr" android:scheme="https" />
|
<data android:host="diaspora.net.gr" android:scheme="https" />
|
||||||
<data android:host="diasporanet.tk" android:scheme="https" />
|
|
||||||
<data android:host="diaspora.permutationsofchaos.com" android:scheme="https" />
|
<data android:host="diaspora.permutationsofchaos.com" android:scheme="https" />
|
||||||
<data android:host="diaspora.pimpmypony.eu" android:scheme="https" />
|
<data android:host="diaspora.pimpmypony.eu" android:scheme="https" />
|
||||||
<data android:host="diaspora.pingupod.de" android:scheme="https" />
|
<data android:host="diaspora.pingupod.de" android:scheme="https" />
|
||||||
<data android:host="diaspora.podzimek.org" android:scheme="https" />
|
<data android:host="diaspora.podzimek.org" android:scheme="https" />
|
||||||
<data android:host="diaspora.poleni.com" android:scheme="https" />
|
<data android:host="diaspora.poleni.com" android:scheme="https" />
|
||||||
<data android:host="diasporapr.tk" android:scheme="https" />
|
|
||||||
<data android:host="diaspora.psyco.fr" android:scheme="https" />
|
<data android:host="diaspora.psyco.fr" android:scheme="https" />
|
||||||
<data android:host="diaspora.punkbeer.me" android:scheme="https" />
|
<data android:host="diaspora.punkbeer.me" android:scheme="https" />
|
||||||
<data android:host="diaspora.raven-ip.com" android:scheme="https" />
|
<data android:host="diaspora.raven-ip.com" android:scheme="https" />
|
||||||
|
@ -126,10 +131,14 @@
|
||||||
<data android:host="diaspora.u4u.org" android:scheme="https" />
|
<data android:host="diaspora.u4u.org" android:scheme="https" />
|
||||||
<data android:host="diaspora.undernet.uy" android:scheme="https" />
|
<data android:host="diaspora.undernet.uy" android:scheme="https" />
|
||||||
<data android:host="diaspora.unixcorn.org" android:scheme="https" />
|
<data android:host="diaspora.unixcorn.org" android:scheme="https" />
|
||||||
<data android:host="diasporausa.com" android:scheme="https" />
|
|
||||||
<data android:host="diaspora.weenmebrown.com" android:scheme="https" />
|
<data android:host="diaspora.weenmebrown.com" android:scheme="https" />
|
||||||
<data android:host="diaspora.xcelor8.com" android:scheme="https" />
|
<data android:host="diaspora.xcelor8.com" android:scheme="https" />
|
||||||
<data android:host="diasp.org" android:scheme="https" />
|
<data android:host="diasporabr.com.br" android:scheme="https" />
|
||||||
|
<data android:host="diasporabrazil.org" android:scheme="https" />
|
||||||
|
<data android:host="diasporanet.tk" android:scheme="https" />
|
||||||
|
<data android:host="diasporapr.tk" android:scheme="https" />
|
||||||
|
<data android:host="diasporausa.com" android:scheme="https" />
|
||||||
|
<data android:host="diasporing.ch" android:scheme="https" />
|
||||||
<data android:host="dissociateduse.rs" android:scheme="https" />
|
<data android:host="dissociateduse.rs" android:scheme="https" />
|
||||||
<data android:host="distributed.chat" android:scheme="https" />
|
<data android:host="distributed.chat" android:scheme="https" />
|
||||||
<data android:host="eat.egregious.ly" android:scheme="https" />
|
<data android:host="eat.egregious.ly" android:scheme="https" />
|
||||||
|
@ -138,50 +147,43 @@
|
||||||
<data android:host="espora.social" android:scheme="https" />
|
<data android:host="espora.social" android:scheme="https" />
|
||||||
<data android:host="failure.net" android:scheme="https" />
|
<data android:host="failure.net" android:scheme="https" />
|
||||||
<data android:host="flokk.no" android:scheme="https" />
|
<data android:host="flokk.no" android:scheme="https" />
|
||||||
<data android:host="framasphere.org" android:scheme="https" />
|
|
||||||
<data android:host="freehuman.fr" android:scheme="https" />
|
<data android:host="freehuman.fr" android:scheme="https" />
|
||||||
<data android:host="friendica.tk" android:scheme="https" />
|
<data android:host="friendica.tk" android:scheme="https" />
|
||||||
<data android:host="home.enslaver.net" android:scheme="https" />
|
<data android:host="home.enslaver.net" android:scheme="https" />
|
||||||
<data android:host="idoru.pl" android:scheme="https" />
|
<data android:host="idoru.pl" android:scheme="https" />
|
||||||
<data android:host="iliketoast.net" android:scheme="https" />
|
<data android:host="iliketoast.net" android:scheme="https" />
|
||||||
<data android:host="joindiaspora.com" android:scheme="https" />
|
|
||||||
<data android:host="jons.gr" android:scheme="https" />
|
<data android:host="jons.gr" android:scheme="https" />
|
||||||
<data android:host="kapok.se" android:scheme="https" />
|
<data android:host="kapok.se" android:scheme="https" />
|
||||||
<data android:host="karmasphe.re" android:scheme="https" />
|
<data android:host="karmasphe.re" android:scheme="https" />
|
||||||
<data android:host="kosmospora.net" android:scheme="https" />
|
<data android:host="kosmospora.net" android:scheme="https" />
|
||||||
<data android:host="laba.mba" android:scheme="https" />
|
<data android:host="laba.mba" android:scheme="https" />
|
||||||
<data android:host="legends.im" android:scheme="https" />
|
|
||||||
<data android:host="liberdade.digital" android:scheme="https" />
|
<data android:host="liberdade.digital" android:scheme="https" />
|
||||||
<data android:host="libertypod.org" android:scheme="https" />
|
<data android:host="libertypod.org" android:scheme="https" />
|
||||||
<data android:host="LibertyPod.org" android:scheme="https" />
|
|
||||||
<data android:host="librenet.co.za" android:scheme="https" />
|
<data android:host="librenet.co.za" android:scheme="https" />
|
||||||
<data android:host="librenet.gr" android:scheme="https" />
|
<data android:host="librenet.gr" android:scheme="https" />
|
||||||
<data android:host="londor.be" android:scheme="https" />
|
<data android:host="londor.be" android:scheme="https" />
|
||||||
<data android:host="lubiora.de" android:scheme="https" />
|
|
||||||
<data android:host="misamigos.online" android:scheme="https" />
|
<data android:host="misamigos.online" android:scheme="https" />
|
||||||
<data android:host="mondiaspora.net" android:scheme="https" />
|
<data android:host="mondiaspora.net" android:scheme="https" />
|
||||||
<data android:host="nerdpol.ch" android:scheme="https" />
|
|
||||||
<data android:host="networkwizard.de" android:scheme="https" />
|
<data android:host="networkwizard.de" android:scheme="https" />
|
||||||
<data android:host="nx-pod.de" android:scheme="https" />
|
<data android:host="nx-pod.de" android:scheme="https" />
|
||||||
<data android:host="parteidervernunft.com" android:scheme="https" />
|
<data android:host="parteidervernunft.com" android:scheme="https" />
|
||||||
|
<data android:host="pe.spbstu.ru" android:scheme="https" />
|
||||||
<data android:host="pod.4ray.co" android:scheme="https" />
|
<data android:host="pod.4ray.co" android:scheme="https" />
|
||||||
<data android:host="pod.8n1.org" android:scheme="https" />
|
<data android:host="pod.8n1.org" android:scheme="https" />
|
||||||
<data android:host="pod.alterworld.info" android:scheme="https" />
|
<data android:host="pod.alterworld.info" android:scheme="https" />
|
||||||
<data android:host="pod.asap-soft.com" android:scheme="https" />
|
<data android:host="pod.asap-soft.com" android:scheme="https" />
|
||||||
<data android:host="podbay.net" android:scheme="https" />
|
|
||||||
<data android:host="pod.cannyfoxx.me" android:scheme="https" />
|
<data android:host="pod.cannyfoxx.me" android:scheme="https" />
|
||||||
<data android:host="pod.comin.dk" android:scheme="https" />
|
<data android:host="pod.comin.dk" android:scheme="https" />
|
||||||
<data android:host="pod.cyberdungeon.de" android:scheme="https" />
|
<data android:host="pod.cyberdungeon.de" android:scheme="https" />
|
||||||
<data android:host="pod.dapor.net" android:scheme="https" />
|
<data android:host="pod.dapor.net" android:scheme="https" />
|
||||||
<data android:host="pod.datenknoten.me" android:scheme="https" />
|
<data android:host="pod.datenknoten.me" android:scheme="https" />
|
||||||
<data android:host="poddery.com" android:scheme="https" />
|
|
||||||
<data android:host="pod.diaspora.software" android:scheme="https" />
|
<data android:host="pod.diaspora.software" android:scheme="https" />
|
||||||
<data android:host="pod.dirkomatik.de" android:scheme="https" />
|
<data android:host="pod.dirkomatik.de" android:scheme="https" />
|
||||||
<data android:host="pod.disroot.org" android:scheme="https" />
|
<data android:host="pod.disroot.org" android:scheme="https" />
|
||||||
<data android:host="pod.dobs.at" android:scheme="https" />
|
<data android:host="pod.dobs.at" android:scheme="https" />
|
||||||
<data android:host="pod.dragondreaming.de" android:scheme="https" />
|
<data android:host="pod.dragondreaming.de" android:scheme="https" />
|
||||||
|
<data android:host="pod.gaialabs.ch" android:scheme="https" />
|
||||||
<data android:host="pod.gedankenausbruch.com" android:scheme="https" />
|
<data android:host="pod.gedankenausbruch.com" android:scheme="https" />
|
||||||
<data android:host="pod.geraspora.de" android:scheme="https" />
|
|
||||||
<data android:host="pod.gleisnetze.de" android:scheme="https" />
|
<data android:host="pod.gleisnetze.de" android:scheme="https" />
|
||||||
<data android:host="pod.goodsharing.at" android:scheme="https" />
|
<data android:host="pod.goodsharing.at" android:scheme="https" />
|
||||||
<data android:host="pod.hashtagueule.fr" android:scheme="https" />
|
<data android:host="pod.hashtagueule.fr" android:scheme="https" />
|
||||||
|
@ -200,32 +202,33 @@
|
||||||
<data android:host="pod.psynet.su" android:scheme="https" />
|
<data android:host="pod.psynet.su" android:scheme="https" />
|
||||||
<data android:host="pod.readme.is" android:scheme="https" />
|
<data android:host="pod.readme.is" android:scheme="https" />
|
||||||
<data android:host="pod.richtig.koeln" android:scheme="https" />
|
<data android:host="pod.richtig.koeln" android:scheme="https" />
|
||||||
<data android:host="podricing.pw" android:scheme="https" />
|
<data android:host="pod.roocita.com" android:scheme="https" />
|
||||||
<data android:host="pod.ros-it.ch" android:scheme="https" />
|
<data android:host="pod.ros-it.ch" android:scheme="https" />
|
||||||
<data android:host="pod.sccn.club" android:scheme="https" />
|
<data android:host="pod.sccn.club" android:scheme="https" />
|
||||||
<data android:host="pod.sertelon.fr" android:scheme="https" />
|
<data android:host="pod.sertelon.fr" android:scheme="https" />
|
||||||
<data android:host="pod.shouldit.work" android:scheme="https" />
|
<data android:host="pod.shouldit.work" android:scheme="https" />
|
||||||
<data android:host="pod.skisso.com" android:scheme="https" />
|
|
||||||
<data android:host="pod.storel.li" android:scheme="https" />
|
<data android:host="pod.storel.li" android:scheme="https" />
|
||||||
<data android:host="pod.tchncs.de" android:scheme="https" />
|
<data android:host="pod.tchncs.de" android:scheme="https" />
|
||||||
<data android:host="pod.thomasdalichow.de" android:scheme="https" />
|
<data android:host="pod.thomasdalichow.de" android:scheme="https" />
|
||||||
<data android:host="pod.undreaming.org" android:scheme="https" />
|
<data android:host="pod.undreaming.org" android:scheme="https" />
|
||||||
|
<data android:host="pod.volt.io" android:scheme="https" />
|
||||||
|
<data android:host="podbay.net" android:scheme="https" />
|
||||||
|
<data android:host="poddery.com" android:scheme="https" />
|
||||||
|
<data android:host="podricing.pw" android:scheme="https" />
|
||||||
<data android:host="pubpod.alqualonde.org" android:scheme="https" />
|
<data android:host="pubpod.alqualonde.org" android:scheme="https" />
|
||||||
<data android:host="realms.the-wizard.co.za" android:scheme="https" />
|
<data android:host="realms.the-wizard.co.za" android:scheme="https" />
|
||||||
<data android:host="revreso.de" android:scheme="https" />
|
<data android:host="revreso.de" android:scheme="https" />
|
||||||
<data android:host="ruhrspora.de" android:scheme="https" />
|
<data android:host="ruhrspora.de" android:scheme="https" />
|
||||||
<data android:host="russiandiaspora.org" android:scheme="https" />
|
<data android:host="russiandiaspora.org" android:scheme="https" />
|
||||||
<data android:host="sechat.org" android:scheme="https" />
|
|
||||||
<data android:host="shrekislove.us" android:scheme="https" />
|
<data android:host="shrekislove.us" android:scheme="https" />
|
||||||
<data android:host="social.acclaro.digital" android:scheme="https" />
|
<data android:host="social.acclaro.digital" android:scheme="https" />
|
||||||
<data android:host="social.baldr.io" android:scheme="https" />
|
<data android:host="social.baldr.io" android:scheme="https" />
|
||||||
<data android:host="social.daxbau.net" android:scheme="https" />
|
<data android:host="social.daxbau.net" android:scheme="https" />
|
||||||
<data android:host="social.elaon.de" android:scheme="https" />
|
<data android:host="social.elaon.de" android:scheme="https" />
|
||||||
<data android:host="socializer.cc" android:scheme="https" />
|
|
||||||
<data android:host="social.lanham.id.au" android:scheme="https" />
|
<data android:host="social.lanham.id.au" android:scheme="https" />
|
||||||
<data android:host="social.mbuto.me" android:scheme="https" />
|
<data android:host="social.mbuto.me" android:scheme="https" />
|
||||||
<data android:host="social.sum7.de" android:scheme="https" />
|
<data android:host="social.sum7.de" android:scheme="https" />
|
||||||
<data android:host="spora.com.ua" android:scheme="https" />
|
<data android:host="socializer.cc" android:scheme="https" />
|
||||||
<data android:host="spora.zone" android:scheme="https" />
|
<data android:host="spora.zone" android:scheme="https" />
|
||||||
<data android:host="subvillage.de" android:scheme="https" />
|
<data android:host="subvillage.de" android:scheme="https" />
|
||||||
<data android:host="sysad.org" android:scheme="https" />
|
<data android:host="sysad.org" android:scheme="https" />
|
||||||
|
@ -238,7 +241,6 @@
|
||||||
<data android:host="wk3.org" android:scheme="https" />
|
<data android:host="wk3.org" android:scheme="https" />
|
||||||
<data android:host="www.datataffel.dk" android:scheme="https" />
|
<data android:host="www.datataffel.dk" android:scheme="https" />
|
||||||
<data android:host="www.diasporaix.de" android:scheme="https" />
|
<data android:host="www.diasporaix.de" android:scheme="https" />
|
||||||
|
|
||||||
<!--@@@ PODLIST END-->
|
<!--@@@ PODLIST END-->
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
|
@ -246,4 +248,4 @@
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
package com.github.dfa.diaspora_android.data;
|
package com.github.dfa.diaspora_android.data;
|
||||||
|
|
||||||
import android.support.annotation.NonNull;
|
import org.json.JSONArray;
|
||||||
|
import org.json.JSONException;
|
||||||
|
import org.json.JSONObject;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -8,10 +10,6 @@ import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
|
||||||
import org.json.JSONException;
|
|
||||||
import org.json.JSONObject;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by gsantner (https://gsantner.github.io/ on 30.09.16.
|
* Created by gsantner (https://gsantner.github.io/ on 30.09.16.
|
||||||
|
@ -25,6 +23,8 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
private boolean trackMergeChanges = false;
|
private boolean trackMergeChanges = false;
|
||||||
private Integer trackAddedIndexStart = -1;
|
private Integer trackAddedIndexStart = -1;
|
||||||
private List<Integer> trackUpdatedIndexes = new ArrayList<>();
|
private List<Integer> trackUpdatedIndexes = new ArrayList<>();
|
||||||
|
private boolean keepOldNameDuringMerge = false;
|
||||||
|
private long timestamp;
|
||||||
|
|
||||||
public DiasporaPodList() {
|
public DiasporaPodList() {
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,9 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
pods.add(pod);
|
pods.add(pod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (json.has("timestamp")) {
|
||||||
|
timestamp = json.getLong("timestamp");
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +61,7 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
jpods.put(pod.toJson());
|
jpods.put(pod.toJson());
|
||||||
}
|
}
|
||||||
json.put("pods", jpods);
|
json.put("pods", jpods);
|
||||||
|
json.put("timestamp", System.currentTimeMillis());
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,6 +93,9 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
if (updatePodBak.getScore() != 0 && updatePod.getScore() == 0) {
|
if (updatePodBak.getScore() != 0 && updatePod.getScore() == 0) {
|
||||||
updatePod.setScore(updatePodBak.getScore());
|
updatePod.setScore(updatePodBak.getScore());
|
||||||
}
|
}
|
||||||
|
if (!updatePodBak.getName().equals("") && keepOldNameDuringMerge) {
|
||||||
|
updatePod.setName(updatePodBak.getName());
|
||||||
|
}
|
||||||
if (isTrackMergeChanges()) {
|
if (isTrackMergeChanges()) {
|
||||||
trackUpdatedIndexes.add(index);
|
trackUpdatedIndexes.add(index);
|
||||||
}
|
}
|
||||||
|
@ -154,12 +161,20 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
return trackUpdatedIndexes;
|
return trackUpdatedIndexes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isKeepOldNameDuringMerge() {
|
||||||
|
return keepOldNameDuringMerge;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKeepOldNameDuringMerge(boolean keepOldNameDuringMerge) {
|
||||||
|
this.keepOldNameDuringMerge = keepOldNameDuringMerge;
|
||||||
|
}
|
||||||
|
|
||||||
/* ██████╗ ██████╗ ██████╗
|
/* ██████╗ ██████╗ ██████╗
|
||||||
* ██╔══██╗██╔═══██╗██╔══██╗
|
* ██╔══██╗██╔═══██╗██╔══██╗
|
||||||
* ██████╔╝██║ ██║██║ ██║
|
* ██████╔╝██║ ██║██║ ██║
|
||||||
* ██╔═══╝ ██║ ██║██║ ██║
|
* ██╔═══╝ ██║ ██║██║ ██║
|
||||||
* ██║ ╚██████╔╝██████╔╝
|
* ██║ ╚██████╔╝██████╔╝
|
||||||
* ╚═╝ ╚═════╝ ╚═════╝ */
|
* ╚═╝ ╚═════╝ ╚═════╝ */
|
||||||
public static class DiasporaPod implements Iterable<DiasporaPodList.DiasporaPod.DiasporaPodUrl>, Comparable<DiasporaPod>, Serializable {
|
public static class DiasporaPod implements Iterable<DiasporaPodList.DiasporaPod.DiasporaPodUrl>, Comparable<DiasporaPod>, Serializable {
|
||||||
private List<DiasporaPodUrl> podUrls = new ArrayList<>();
|
private List<DiasporaPodUrl> podUrls = new ArrayList<>();
|
||||||
private List<String> mainLangs = new ArrayList<>();
|
private List<String> mainLangs = new ArrayList<>();
|
||||||
|
@ -289,7 +304,6 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
/*
|
/*
|
||||||
* Getter & Setter
|
* Getter & Setter
|
||||||
*/
|
*/
|
||||||
@NonNull
|
|
||||||
public List<DiasporaPodUrl> getPodUrls() {
|
public List<DiasporaPodUrl> getPodUrls() {
|
||||||
return podUrls;
|
return podUrls;
|
||||||
}
|
}
|
||||||
|
@ -299,7 +313,6 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
|
||||||
public List<String> getMainLangs() {
|
public List<String> getMainLangs() {
|
||||||
return mainLangs;
|
return mainLangs;
|
||||||
}
|
}
|
||||||
|
@ -319,8 +332,8 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
/**
|
/**
|
||||||
* Returns the first DiasporaPodUrl in the list
|
* Returns the first DiasporaPodUrl in the list
|
||||||
*/
|
*/
|
||||||
public DiasporaPodUrl getPodUrl(){
|
public DiasporaPodUrl getPodUrl() {
|
||||||
if(podUrls.size() > 0){
|
if (podUrls.size() > 0) {
|
||||||
return podUrls.get(0);
|
return podUrls.get(0);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@ -433,7 +446,7 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
/**
|
/**
|
||||||
* Set default values for https
|
* Set default values for https
|
||||||
*/
|
*/
|
||||||
public void setHttpsDefaults(){
|
public void setHttpsDefaults() {
|
||||||
setProtocol("https");
|
setProtocol("https");
|
||||||
setPort(443);
|
setPort(443);
|
||||||
}
|
}
|
||||||
|
@ -442,7 +455,7 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
|
||||||
/**
|
/**
|
||||||
* Set default values for http
|
* Set default values for http
|
||||||
*/
|
*/
|
||||||
public void setHttpDefaults(){
|
public void setHttpDefaults() {
|
||||||
setProtocol("http");
|
setProtocol("http");
|
||||||
setPort(80);
|
setPort(80);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ import android.webkit.CookieManager;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.github.dfa.diaspora_android.App;
|
import com.github.dfa.diaspora_android.App;
|
||||||
import com.github.dfa.diaspora_android.R;
|
import com.github.dfa.diaspora_android.R;
|
||||||
|
@ -83,7 +84,14 @@ public class PodSelectionFragment extends CustomFragment implements SearchView.O
|
||||||
listViewPod.setTextFilterEnabled(true);
|
listViewPod.setTextFilterEnabled(true);
|
||||||
listViewPod.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
listViewPod.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
||||||
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
|
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
|
||||||
showPodSelectionDialog(podList.getPodAt(i));
|
String text = ((TextView) view).getText().toString();
|
||||||
|
for (DiasporaPod pod : podList) {
|
||||||
|
if (pod.getPodUrl().getHost().equals(text)) {
|
||||||
|
showPodSelectionDialog(pod);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
LocalBroadcastManager.getInstance(getContext()).registerReceiver(podListReceiver, new IntentFilter(GetPodsService.MESSAGE_PODS_RECEIVED));
|
LocalBroadcastManager.getInstance(getContext()).registerReceiver(podListReceiver, new IntentFilter(GetPodsService.MESSAGE_PODS_RECEIVED));
|
||||||
|
@ -139,7 +147,7 @@ public class PodSelectionFragment extends CustomFragment implements SearchView.O
|
||||||
private void updateListedPods() {
|
private void updateListedPods() {
|
||||||
final ArrayList<String> listedPodsList = new ArrayList<>();
|
final ArrayList<String> listedPodsList = new ArrayList<>();
|
||||||
for (DiasporaPod pod : this.podList) {
|
for (DiasporaPod pod : this.podList) {
|
||||||
listedPodsList.add(pod.getPodUrls().get(0).getHost());
|
listedPodsList.add(pod.getPodUrl().getHost());
|
||||||
}
|
}
|
||||||
|
|
||||||
listViewPodAdapter = new ArrayAdapter<>(
|
listViewPodAdapter = new ArrayAdapter<>(
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue