Skip to content

task(SDK-1556) - Minor improvements around dot sep #815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
task(SDK-1556) - Minor improvements around message summary for timer …
…template
  • Loading branch information
Anush-Shand committed Jun 3, 2025
commit 613f688c0ea9c0746abb510742cc01654f3e18b8
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public class PTConstants {

public static final String PT_MSG_ALT = "pt_msg_alt";

public static final String PT_MSG_SUMMARY_ALT = "pt_msg_summary_alt";

public static final String PT_PRODUCT_DISPLAY_LINEAR = "pt_product_display_linear";

public static final String PT_PRODUCT_DISPLAY_ACTION_TEXT_COLOUR = "pt_product_display_action_text_clr";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class TemplateRenderer : INotificationRenderer, AudibleNotification {
var pt_timer_end = 0
private var pt_title_alt: String? = null
private var pt_msg_alt: String? = null
private var pt_msg_summary_alt: String? = null
private var pt_big_img_alt: String? = null
internal var pt_product_display_linear: String? = null
internal var pt_meta_clr: String? = null
Expand Down Expand Up @@ -281,6 +282,13 @@ class TemplateRenderer : INotificationRenderer, AudibleNotification {
)
}

if (pt_msg_summary_alt != null && pt_msg_summary_alt!!.isNotEmpty()) {
ptJsonObj?.put(PT_MSG_SUMMARY, pt_msg_summary_alt) ?: basicTemplateBundle.putString(
PT_MSG_SUMMARY,
pt_msg_summary_alt
)
}


if (ptJsonObj != null) {
basicTemplateBundle.putString(
Expand Down Expand Up @@ -410,6 +418,7 @@ class TemplateRenderer : INotificationRenderer, AudibleNotification {
pt_timer_end = Utils.getTimerEnd(extras)
pt_big_img_alt = extras.getString(PT_BIG_IMG_ALT)
pt_msg_alt = extras.getString(PT_MSG_ALT)
pt_msg_summary_alt = extras.getString(PT_MSG_SUMMARY_ALT)
pt_title_alt = extras.getString(PT_TITLE_ALT)
pt_product_display_linear = extras.getString(PT_PRODUCT_DISPLAY_LINEAR)
pt_product_display_action_text_clr = darkModeAdaptiveColors[PT_PRODUCT_DISPLAY_ACTION_TEXT_COLOUR]
Expand Down