mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Keep web socket open during calling to improve message delivery.
This commit is contained in:
committed by
Greyson Parrelli
parent
120dda6e68
commit
b002235ef7
@@ -161,6 +161,10 @@ public class Util {
|
||||
return collection != null && !collection.isEmpty();
|
||||
}
|
||||
|
||||
public static <K, V> boolean hasItems(@Nullable Map<K, V> map) {
|
||||
return map != null && !map.isEmpty();
|
||||
}
|
||||
|
||||
public static <K, V> V getOrDefault(@NonNull Map<K, V> map, K key, V defaultValue) {
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user