Nur Mitarbeiter mit aktivem Chatcode werden auf die App geladen.
Beim Herunterziehen der Kontaktliste in der App werden die Kontakte aktualisiert. Teams sind noch davon ausgenommen.
This commit is contained in:
@@ -13,6 +13,7 @@ import android.support.v4.app.NotificationCompat;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -260,4 +261,25 @@ public class Util {
|
||||
entity2MessagesCountRel.remove(entity);
|
||||
}
|
||||
}
|
||||
|
||||
public static Integer[] convertStringArrayToIntegerArray(String[] arrayToConvert) {
|
||||
Integer[] result = new Integer[arrayToConvert.length];
|
||||
|
||||
try {
|
||||
for(int i = 0; i < arrayToConvert.length; i++) {
|
||||
result[i] = Integer.parseInt(arrayToConvert[i]);
|
||||
}
|
||||
} catch(NumberFormatException nfe) {
|
||||
Log.e("UTIL", nfe.getMessage());
|
||||
nfe.printStackTrace();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static boolean contains(final Integer[] array, final int key) {
|
||||
return Arrays.asList(array).contains(key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user