From 7576d60ff43a48c9c6d7fbc960230455a63b6268 Mon Sep 17 00:00:00 2001 From: Kieron Quinn Date: Thu, 29 Aug 2024 23:40:08 +0100 Subject: [PATCH] Fixed an issue where the date would sometimes appear in Expanded Smartspace when it had not been added (#244) --- app/build.gradle | 4 ++-- .../components/smartspace/ExpandedSmartspacerSession.kt | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a0b50356..595888e1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,8 +13,8 @@ plugins { apply plugin: 'com.google.android.gms.oss-licenses-plugin' -def tagName = '1.8' -def tagCode = 180 +def tagName = '1.8.1' +def tagCode = 181 android { compileSdk 34 diff --git a/app/src/main/java/com/kieronquinn/app/smartspacer/components/smartspace/ExpandedSmartspacerSession.kt b/app/src/main/java/com/kieronquinn/app/smartspacer/components/smartspace/ExpandedSmartspacerSession.kt index 622cfa6d..8826f6a7 100644 --- a/app/src/main/java/com/kieronquinn/app/smartspacer/components/smartspace/ExpandedSmartspacerSession.kt +++ b/app/src/main/java/com/kieronquinn/app/smartspacer/components/smartspace/ExpandedSmartspacerSession.kt @@ -332,7 +332,9 @@ class ExpandedSmartspacerSession( } val base = target.templateData?.subtitleSupplementalItem?.let { Complication.SubItemInfo(target, it) - } ?: target.baseAction?.let { + } ?: target.baseAction?.takeUnless { + target.smartspaceTargetId.startsWith(BLANK_TARGET_PREFIX) + }?.let { Complication.Action(target, it) } listOfNotNull(header, base)