From 5b99da32b0603c1ce4e32517c3965abb2efea49a Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Tue, 23 Jun 2026 10:13:33 +0200 Subject: [PATCH] fix(qs): silence StartActivityAndCollapseDeprecated lint error 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) --- .../de/jeanlucmakiola/calendula/qs/NewEventTileService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/jeanlucmakiola/calendula/qs/NewEventTileService.kt b/app/src/main/java/de/jeanlucmakiola/calendula/qs/NewEventTileService.kt index 4199341..757aef6 100644 --- a/app/src/main/java/de/jeanlucmakiola/calendula/qs/NewEventTileService.kt +++ b/app/src/main/java/de/jeanlucmakiola/calendula/qs/NewEventTileService.kt @@ -15,6 +15,9 @@ import kotlin.time.Clock */ 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() { super.onClick() val today = Clock.System.now() @@ -33,7 +36,6 @@ class NewEventTileService : TileService() { ) startActivityAndCollapse(pending) } else { - @Suppress("DEPRECATION") startActivityAndCollapse(intent) } }