Small cleanup
This commit is contained in:
parent
35cebfca7d
commit
70d30c43a5
1 changed files with 1 additions and 2 deletions
|
|
@ -22,7 +22,6 @@ import androidx.core.app.NotificationManagerCompat
|
||||||
import androidx.core.app.PendingIntentCompat
|
import androidx.core.app.PendingIntentCompat
|
||||||
import androidx.core.app.ServiceCompat
|
import androidx.core.app.ServiceCompat
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import androidx.core.graphics.drawable.IconCompat
|
|
||||||
import io.element.android.features.call.impl.R
|
import io.element.android.features.call.impl.R
|
||||||
import io.element.android.features.call.impl.ui.ElementCallActivity
|
import io.element.android.features.call.impl.ui.ElementCallActivity
|
||||||
import io.element.android.libraries.core.extensions.runCatchingExceptions
|
import io.element.android.libraries.core.extensions.runCatchingExceptions
|
||||||
|
|
@ -69,7 +68,7 @@ class CallForegroundService : Service() {
|
||||||
val callActivityIntent = Intent(this, ElementCallActivity::class.java)
|
val callActivityIntent = Intent(this, ElementCallActivity::class.java)
|
||||||
val pendingIntent = PendingIntentCompat.getActivity(this, 0, callActivityIntent, 0, false)
|
val pendingIntent = PendingIntentCompat.getActivity(this, 0, callActivityIntent, 0, false)
|
||||||
val notification = NotificationCompat.Builder(this, foregroundServiceChannel.id)
|
val notification = NotificationCompat.Builder(this, foregroundServiceChannel.id)
|
||||||
.setSmallIcon(IconCompat.createWithResource(this, CommonDrawables.ic_notification))
|
.setSmallIcon(CommonDrawables.ic_notification)
|
||||||
.setContentTitle(getString(R.string.call_foreground_service_title_android))
|
.setContentTitle(getString(R.string.call_foreground_service_title_android))
|
||||||
.setContentText(getString(R.string.call_foreground_service_message_android))
|
.setContentText(getString(R.string.call_foreground_service_message_android))
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue