mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
No need to use apply setContentText accept null parameter.
This commit is contained in:
+2
-6
@@ -133,12 +133,8 @@ class RingingCallNotificationCreator(
|
|||||||
.setWhen(timestamp)
|
.setWhen(timestamp)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setShowWhen(false)
|
.setShowWhen(false)
|
||||||
.apply {
|
// If textContent is null, the content text is set by the style (will be "Incoming call")
|
||||||
if (textContent != null) {
|
.setContentText(textContent)
|
||||||
setContentText(textContent)
|
|
||||||
// Else the content text is set by the style (will be "Incoming call")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.setSound(Settings.System.DEFAULT_RINGTONE_URI, AudioManager.STREAM_RING)
|
.setSound(Settings.System.DEFAULT_RINGTONE_URI, AudioManager.STREAM_RING)
|
||||||
.setTimeoutAfter(ElementCallConfig.RINGING_CALL_DURATION_SECONDS.seconds.inWholeMilliseconds)
|
.setTimeoutAfter(ElementCallConfig.RINGING_CALL_DURATION_SECONDS.seconds.inWholeMilliseconds)
|
||||||
.setContentIntent(answerIntent)
|
.setContentIntent(answerIntent)
|
||||||
|
|||||||
Reference in New Issue
Block a user