From 9dfb78fab6c0709c0d409713ef0a5fb5b872a67e Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Thu, 30 Jun 2016 15:43:44 -0700 Subject: [PATCH] Fix missing header text in notification groups Fixes a case where notification header text could go missing if a notification view was recycled and previously had a header text. Reapplying only hid the text without clearing it, so the extraction logic thought it was still there and hid the text for the children even though it was not showing for the parent. Change-Id: I3f96e1e7bebb2f815020d278ad13b2b5d948e63c Fixes: 29915184 --- core/java/android/app/Notification.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 7682af8def811..35c49b38b4368 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3237,6 +3237,7 @@ public class Notification implements Parcelable contentView.setTextViewText(R.id.app_name_text, null); contentView.setViewVisibility(R.id.chronometer, View.GONE); contentView.setViewVisibility(R.id.header_text, View.GONE); + contentView.setTextViewText(R.id.header_text, null); contentView.setViewVisibility(R.id.header_text_divider, View.GONE); contentView.setViewVisibility(R.id.time_divider, View.GONE); contentView.setViewVisibility(R.id.time, View.GONE);