Skip to content

Commit 74d1035

Browse files
author
Tarek Loubani
committed
Remove some unneeded debug language
1 parent a75f8ed commit 74d1035

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,7 @@ class CallActivity : CallBaseActivity() {
417417
// Register broadcast receiver for ending call from notification
418418
val endCallFilter = IntentFilter("com.nextcloud.talk.END_CALL_FROM_NOTIFICATION")
419419

420-
// Debug logging to confirm this is the issue
421-
Log.d(TAG, "Registering broadcast receiver for end call from notification...")
422-
Log.d(TAG, "Android SDK version: ${Build.VERSION.SDK_INT}")
423-
Log.d(TAG, "Using registerPermissionHandlerBroadcastReceiver with ReceiverFlag.NotExported")
424-
425-
// Fix: Use the proper utility function with ReceiverFlag for Android 14+ compatibility
420+
// Use the proper utility function with ReceiverFlag for Android 14+ compatibility
426421
// This receiver is for internal app use only (notification actions), so it should NOT be exported
427422
registerPermissionHandlerBroadcastReceiver(
428423
endCallFromNotificationReceiver,
@@ -1139,8 +1134,8 @@ class CallActivity : CallBaseActivity() {
11391134
Log.w(TAG, "DEBUG: Microphone permission not granted - skipping foreground service start")
11401135
}
11411136

1142-
// CRITICAL FIX: Always proceed with call setup regardless of notification permission
11431137
// The call should not hang just because notification permission was denied
1138+
// Always proceed with call setup regardless of notification permission
11441139
Log.d(TAG, "DEBUG: Ensuring call proceeds even without notification permission")
11451140

11461141
if (isVoiceOnlyCall) {
@@ -1189,8 +1184,7 @@ class CallActivity : CallBaseActivity() {
11891184
Log.w(TAG, "DEBUG: Notification permission specifically dismissed - proceeding with call anyway")
11901185
}
11911186

1192-
// CRITICAL FIX: Proceed with call even when notification permission is dismissed
1193-
// This prevents the call from hanging when user dismisses notification permission
1187+
// Proceed with call even when notification permission is dismissed
11941188
if (!isConnectionEstablished) {
11951189
Log.d(TAG, "DEBUG: Proceeding with prepareCall() after dismissing notification permission")
11961190
prepareCall()

app/src/main/java/com/nextcloud/talk/services/CallForegroundService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import androidx.core.content.ContextCompat
2222
import com.nextcloud.talk.R
2323
import com.nextcloud.talk.activities.CallActivity
2424
import com.nextcloud.talk.application.NextcloudTalkApplication
25-
// DIAGNOSTIC: Adding import for EndCallReceiver
2625
import com.nextcloud.talk.receivers.EndCallReceiver
2726
import com.nextcloud.talk.utils.NotificationUtils
2827
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_CALL_VOICE_ONLY

0 commit comments

Comments
 (0)