mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Add internal setting for call bandwidth mode.
This commit is contained in:
committed by
Greyson Parrelli
parent
eee9c967fa
commit
2f97b80b9c
@@ -35,6 +35,10 @@ public final class NetworkUtil {
|
||||
}
|
||||
|
||||
public static @NonNull CallManager.BandwidthMode getCallingBandwidthMode(@NonNull Context context, @NonNull PeerConnection.AdapterType networkAdapter) {
|
||||
if (SignalStore.internalValues().callingBandwidthMode() != CallManager.BandwidthMode.NORMAL) {
|
||||
return SignalStore.internalValues().callingBandwidthMode();
|
||||
}
|
||||
|
||||
return useLowBandwidthCalling(context, networkAdapter) ? CallManager.BandwidthMode.LOW : CallManager.BandwidthMode.NORMAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user