mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 10:20:25 +01:00
Add Small Group Ringing support.
This commit is contained in:
committed by
Alex Hart
parent
5787a5f68a
commit
db7272730e
@@ -82,6 +82,8 @@ public final class FeatureFlags {
|
||||
private static final String RETRY_RECEIPTS = "android.retryReceipts";
|
||||
private static final String SUGGEST_SMS_BLACKLIST = "android.suggestSmsBlacklist";
|
||||
private static final String ANNOUNCEMENT_GROUPS = "android.announcementGroups";
|
||||
private static final String MAX_GROUP_CALL_RING_SIZE = "global.calling.maxGroupCallRingSize";
|
||||
private static final String GROUP_CALL_RINGING = "android.calling.groupCallRinging";
|
||||
|
||||
/**
|
||||
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
||||
@@ -117,7 +119,9 @@ public final class FeatureFlags {
|
||||
SENDER_KEY,
|
||||
RETRY_RECEIPTS,
|
||||
SUGGEST_SMS_BLACKLIST,
|
||||
ANNOUNCEMENT_GROUPS
|
||||
ANNOUNCEMENT_GROUPS,
|
||||
MAX_GROUP_CALL_RING_SIZE,
|
||||
GROUP_CALL_RINGING
|
||||
);
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -166,7 +170,9 @@ public final class FeatureFlags {
|
||||
RETRY_RESPOND_MAX_AGE,
|
||||
SUGGEST_SMS_BLACKLIST,
|
||||
RETRY_RECEIPTS,
|
||||
SENDER_KEY
|
||||
SENDER_KEY,
|
||||
MAX_GROUP_CALL_RING_SIZE,
|
||||
GROUP_CALL_RINGING
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -383,6 +389,16 @@ public final class FeatureFlags {
|
||||
return getString(SUGGEST_SMS_BLACKLIST, "");
|
||||
}
|
||||
|
||||
/** Max group size that can be use group call ringing. */
|
||||
public static long maxGroupCallRingSize() {
|
||||
return getLong(MAX_GROUP_CALL_RING_SIZE, 16);
|
||||
}
|
||||
|
||||
/** Whether or not to show the group call ring toggle in the UI. */
|
||||
public static boolean groupCallRinging() {
|
||||
return getBoolean(GROUP_CALL_RINGING, false);
|
||||
}
|
||||
|
||||
/** Only for rendering debug info. */
|
||||
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
|
||||
return new TreeMap<>(REMOTE_VALUES);
|
||||
|
||||
Reference in New Issue
Block a user