Skip to content

Commit cb458bc

Browse files
committed
suppress ForegroundServiceType warning
for now i give up to understand the warning "To call Service.startForeground(), the <service> element of manifest file must have the foregroundServiceType attribute specified" From my pov everything is correct! Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
1 parent 633cfb0 commit cb458bc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class CallForegroundService : Service() {
2929

3030
override fun onBind(intent: Intent?): IBinder? = null
3131

32+
@Suppress("ForegroundServiceType")
3233
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
3334
val conversationName = intent?.getStringExtra(EXTRA_CONVERSATION_NAME)
3435
val callExtras = intent?.getBundleExtra(EXTRA_CALL_INTENT_EXTRAS)

0 commit comments

Comments
 (0)