Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Jan 29, 2026

Backport of PR #5769

@backportbot backportbot bot requested a review from mahibi January 29, 2026 12:20
@backportbot backportbot bot added the 3. to review Waiting for reviews label Jan 29, 2026
@backportbot backportbot bot added this to the 23.0.0 milestone Jan 29, 2026
…ze them?)

lint gives:

To call Service.startForeground(), the <service> element of manifest file must have the foregroundServiceType attribute specified

for the lines
CallForegroundService.kt:40
CallForegroundService.kt:42

However the AndroidManifest contains the foregroundServiceType for this class:

        <service
            android:name=".services.CallForegroundService"
            android:exported="false"
            android:foregroundServiceType="microphone|camera" />

For
 startForeground(NOTIFICATION_ID, notification, foregroundServiceType)
i guess it's just a lint problem to not recognize that the service types are passed as variable.

For
 startForeground(NOTIFICATION_ID, notification)
i guess lint is not able to take into the android version check where it's not necessary to pass a service type.

So i will suppress the lint warnings.

Signed-off-by: Marcel Hibbe <[email protected]>
@mahibi mahibi merged commit 74023a1 into stable-23.0 Jan 29, 2026
10 of 14 checks passed
@mahibi mahibi deleted the backport/5769/stable-23.0 branch January 29, 2026 12:20
@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings99104
Errors00

SpotBugs

Lint increased!

@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/5772.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant