mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 03:35:58 +00:00
Inline the group call reactions feature flag.
This commit is contained in:
committed by
Greyson Parrelli
parent
f23476a4e9
commit
d20f588802
@@ -35,13 +35,10 @@ class CallOverflowPopupWindow(private val activity: FragmentActivity, parentView
|
||||
|
||||
init {
|
||||
val root = (contentView as LinearLayout)
|
||||
if (FeatureFlags.groupCallReactions()) {
|
||||
val reactionScrubber = root.findViewById<CallReactionScrubber>(R.id.reaction_scrubber)
|
||||
reactionScrubber.visible = true
|
||||
reactionScrubber.initialize(activity.supportFragmentManager) {
|
||||
ApplicationDependencies.getSignalCallManager().react(it)
|
||||
dismiss()
|
||||
}
|
||||
val reactionScrubber = root.findViewById<CallReactionScrubber>(R.id.reaction_scrubber)
|
||||
reactionScrubber.initialize(activity.supportFragmentManager) {
|
||||
ApplicationDependencies.getSignalCallManager().react(it)
|
||||
dismiss()
|
||||
}
|
||||
if (FeatureFlags.groupCallRaiseHand()) {
|
||||
val raiseHand = root.findViewById<ConstraintLayout>(R.id.raise_hand_layout_parent)
|
||||
|
||||
@@ -159,7 +159,7 @@ public final class WebRtcControls {
|
||||
}
|
||||
|
||||
public boolean displayOverflow() {
|
||||
return (FeatureFlags.groupCallReactions() || FeatureFlags.groupCallRaiseHand()) && isAtLeastOutgoing() && hasAtLeastOneRemote && isGroupCall();
|
||||
return isAtLeastOutgoing() && hasAtLeastOneRemote && isGroupCall();
|
||||
}
|
||||
|
||||
public boolean displayMuteAudio() {
|
||||
|
||||
@@ -917,9 +917,7 @@ public final class SignalCallManager implements CallManager.Observer, GroupCall.
|
||||
|
||||
@Override
|
||||
public void onReactions(@NonNull GroupCall groupCall, List<Reaction> reactions) {
|
||||
if (FeatureFlags.groupCallReactions()) {
|
||||
processStateless(s -> serviceState.getActionProcessor().handleGroupCallReaction(serviceState, s, reactions));
|
||||
}
|
||||
processStateless(s -> serviceState.getActionProcessor().handleGroupCallReaction(serviceState, s, reactions));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -113,7 +113,6 @@ public final class FeatureFlags {
|
||||
private static final String IDEAL_DONATIONS = "android.ideal.donations.5";
|
||||
public static final String IDEAL_ENABLED_REGIONS = "global.donations.idealEnabledRegions";
|
||||
public static final String SEPA_ENABLED_REGIONS = "global.donations.sepaEnabledRegions";
|
||||
private static final String CALLING_REACTIONS = "android.calling.reactions";
|
||||
private static final String NOTIFICATION_THUMBNAIL_BLOCKLIST = "android.notificationThumbnailProductBlocklist";
|
||||
private static final String CALLING_RAISE_HAND = "android.calling.raiseHand";
|
||||
private static final String USE_ACTIVE_CALL_MANAGER = "android.calling.useActiveCallManager.5";
|
||||
@@ -197,7 +196,6 @@ public final class FeatureFlags {
|
||||
IDEAL_DONATIONS,
|
||||
IDEAL_ENABLED_REGIONS,
|
||||
SEPA_ENABLED_REGIONS,
|
||||
CALLING_REACTIONS,
|
||||
NOTIFICATION_THUMBNAIL_BLOCKLIST,
|
||||
CALLING_RAISE_HAND,
|
||||
USE_ACTIVE_CALL_MANAGER,
|
||||
@@ -278,7 +276,6 @@ public final class FeatureFlags {
|
||||
PROMPT_FOR_NOTIFICATION_CONFIG,
|
||||
PROMPT_BATTERY_SAVER,
|
||||
CRASH_PROMPT_CONFIG,
|
||||
CALLING_REACTIONS,
|
||||
NOTIFICATION_THUMBNAIL_BLOCKLIST,
|
||||
CALLING_RAISE_HAND,
|
||||
VIDEO_RECORD_1X_ZOOM,
|
||||
@@ -679,13 +676,6 @@ public final class FeatureFlags {
|
||||
return getString(SEPA_ENABLED_REGIONS, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not group call reactions are enabled.
|
||||
*/
|
||||
public static boolean groupCallReactions() {
|
||||
return getBoolean(CALLING_REACTIONS, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not group call raise hand is enabled.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user