mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Fix do not disturb settings for calls.
This commit is contained in:
committed by
Greyson Parrelli
parent
1459dbf64d
commit
f9ec9ac2fd
@@ -174,8 +174,9 @@ public class IncomingCallActionProcessor extends DeviceAwareActionProcessor {
|
||||
protected @NonNull WebRtcServiceState handleLocalRinging(@NonNull WebRtcServiceState currentState, @NonNull RemotePeer remotePeer) {
|
||||
Log.i(TAG, "handleLocalRinging(): call_id: " + remotePeer.getCallId());
|
||||
|
||||
RemotePeer activePeer = currentState.getCallInfoState().requireActivePeer();
|
||||
Recipient recipient = remotePeer.getRecipient();
|
||||
RemotePeer activePeer = currentState.getCallInfoState().requireActivePeer();
|
||||
Recipient recipient = remotePeer.getRecipient();
|
||||
boolean shouldDisturbUserWithCall = DoNotDisturbUtil.shouldDisturbUserWithCall(context.getApplicationContext(), recipient);
|
||||
|
||||
activePeer.localRinging();
|
||||
|
||||
@@ -187,7 +188,6 @@ public class IncomingCallActionProcessor extends DeviceAwareActionProcessor {
|
||||
CallTable.Event.ONGOING);
|
||||
|
||||
|
||||
boolean shouldDisturbUserWithCall = DoNotDisturbUtil.shouldDisturbUserWithCall(context.getApplicationContext(), recipient);
|
||||
if (shouldDisturbUserWithCall) {
|
||||
webRtcInteractor.updatePhoneState(LockManager.PhoneState.INTERACTIVE);
|
||||
boolean started = webRtcInteractor.startWebRtcCallActivityIfPossible();
|
||||
|
||||
Reference in New Issue
Block a user