mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
don't use calls integration API
This commit is contained in:
parent
6c1a3c850a
commit
320c120a61
1 changed files with 0 additions and 7 deletions
|
@ -26,9 +26,6 @@ public class VideochatUtil {
|
||||||
String hash = "#offer=" + payload;
|
String hash = "#offer=" + payload;
|
||||||
|
|
||||||
//DcHelper.getNotificationCenter(activity).addCallNotification(accId, chatId, callId);
|
//DcHelper.getNotificationCenter(activity).addCallNotification(accId, chatId, callId);
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
|
||||||
CallIntegrationService.addNewIncomingCall(activity, accId, chatId, callId, payload);
|
|
||||||
}
|
|
||||||
openCall(activity, chatId, callId, hash);
|
openCall(activity, chatId, callId, hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,10 +38,6 @@ public class VideochatUtil {
|
||||||
.ifNecessary()
|
.ifNecessary()
|
||||||
.withPermanentDenialDialog(activity.getString(R.string.perm_explain_access_to_camera_denied))
|
.withPermanentDenialDialog(activity.getString(R.string.perm_explain_access_to_camera_denied))
|
||||||
.onAllGranted(() -> {
|
.onAllGranted(() -> {
|
||||||
if ("#call".equals(hash) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
|
||||||
CallIntegrationService.registerPhoneAccount(activity, accId);
|
|
||||||
CallIntegrationService.placeCall(activity, accId, chatId);
|
|
||||||
}
|
|
||||||
Intent intent = new Intent(activity, VideochatActivity.class);
|
Intent intent = new Intent(activity, VideochatActivity.class);
|
||||||
intent.setAction(Intent.ACTION_VIEW);
|
intent.setAction(Intent.ACTION_VIEW);
|
||||||
intent.putExtra(VideochatActivity.EXTRA_CHAT_ID, chatId);
|
intent.putExtra(VideochatActivity.EXTRA_CHAT_ID, chatId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue