mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-10 07:41:48 +00:00
Merge branch 'my-dev' into disappearing-messages
# Conflicts: # app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
This commit is contained in:
@@ -148,12 +148,11 @@ public class PassphrasePromptActivity extends BaseActionBarActivity {
|
||||
// Finish and proceed with the next intent.
|
||||
Intent nextIntent = getIntent().getParcelableExtra("next_intent");
|
||||
if (nextIntent != null) {
|
||||
startActivity(nextIntent);
|
||||
// try {
|
||||
// startActivity(nextIntent);
|
||||
// } catch (java.lang.SecurityException e) {
|
||||
// Log.w(TAG, "Access permission not passed from PassphraseActivity, retry sharing.");
|
||||
// }
|
||||
try {
|
||||
startActivity(nextIntent);
|
||||
} catch (java.lang.SecurityException e) {
|
||||
Log.w(TAG, "Access permission not passed from PassphraseActivity, retry sharing.", e);
|
||||
}
|
||||
}
|
||||
finish();
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import android.os.IBinder
|
||||
import android.os.ResultReceiver
|
||||
import android.telephony.PhoneStateListener
|
||||
import android.telephony.TelephonyManager
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.os.bundleOf
|
||||
import androidx.localbroadcastmanager.content.LocalBroadcastManager
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
@@ -199,7 +200,7 @@ class WebRtcCallService: Service(), CallManager.WebRtcListener {
|
||||
private val serviceExecutor = Executors.newSingleThreadExecutor()
|
||||
private val timeoutExecutor = Executors.newScheduledThreadPool(1)
|
||||
private val hangupOnCallAnswered = HangUpRtcOnPstnCallAnsweredListener {
|
||||
startService(hangupIntent(this))
|
||||
ContextCompat.startForegroundService(this, hangupIntent(this))
|
||||
}
|
||||
|
||||
private var networkChangedReceiver: NetworkChangeReceiver? = null
|
||||
|
||||
@@ -78,7 +78,7 @@ class CallMessageProcessor(private val context: Context, private val textSecureP
|
||||
private fun incomingHangup(callMessage: CallMessage) {
|
||||
val callId = callMessage.callId ?: return
|
||||
val hangupIntent = WebRtcCallService.remoteHangupIntent(context, callId)
|
||||
context.startService(hangupIntent)
|
||||
ContextCompat.startForegroundService(context, hangupIntent)
|
||||
}
|
||||
|
||||
private fun incomingAnswer(callMessage: CallMessage) {
|
||||
@@ -91,7 +91,7 @@ class CallMessageProcessor(private val context: Context, private val textSecureP
|
||||
sdp = sdp,
|
||||
callId = callId
|
||||
)
|
||||
context.startService(answerIntent)
|
||||
ContextCompat.startForegroundService(context, answerIntent)
|
||||
}
|
||||
|
||||
private fun handleIceCandidates(callMessage: CallMessage) {
|
||||
|
||||
Reference in New Issue
Block a user