fix(qs): silence StartActivityAndCollapseDeprecated lint error
All checks were successful
Translations / check (pull_request) Successful in 4s
CI / ci (pull_request) Successful in 4m15s

lintDebug aborts on the deprecated startActivityAndCollapse(Intent) overload in
the pre-34 branch, even though that overload is the only one available below
UpsideDownCake and is reached only there. Suppress the lint issue (and the
compiler deprecation) at the function level since the call is intentional and
version-gated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-23 10:13:33 +02:00
parent b8a7191fbe
commit 5b99da32b0

View File

@@ -15,6 +15,9 @@ import kotlin.time.Clock
*/ */
class NewEventTileService : TileService() { class NewEventTileService : TileService() {
// The pre-34 branch intentionally uses the deprecated Intent overload: it is
// the only form available below UpsideDownCake, and is reached only there.
@Suppress("DEPRECATION", "StartActivityAndCollapseDeprecated")
override fun onClick() { override fun onClick() {
super.onClick() super.onClick()
val today = Clock.System.now() val today = Clock.System.now()
@@ -33,7 +36,6 @@ class NewEventTileService : TileService() {
) )
startActivityAndCollapse(pending) startActivityAndCollapse(pending)
} else { } else {
@Suppress("DEPRECATION")
startActivityAndCollapse(intent) startActivityAndCollapse(intent)
} }
} }