Skip to content

Commit 468a2ac

Browse files
cwrenAndroid (Google) Code Review
authored andcommitted
Merge "Don't assume digest lines are GONE, we may be recycling them." into jb-dev
2 parents 614349d + 4ed80d5 commit 468a2ac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/java/android/app/Notification.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,14 +1852,17 @@ private RemoteViews makeBigContentView() {
18521852
int[] rowIds = {R.id.inbox_text0, R.id.inbox_text1, R.id.inbox_text2, R.id.inbox_text3,
18531853
R.id.inbox_text4};
18541854

1855+
// Make sure all rows are gone in case we reuse a view.
1856+
for (int rowId : rowIds) {
1857+
contentView.setViewVisibility(rowId, View.GONE);
1858+
}
1859+
18551860
int i=0;
18561861
while (i < mTexts.size() && i < rowIds.length) {
18571862
CharSequence str = mTexts.get(i);
18581863
if (str != null && !str.equals("")) {
18591864
contentView.setViewVisibility(rowIds[i], View.VISIBLE);
18601865
contentView.setTextViewText(rowIds[i], str);
1861-
} else {
1862-
contentView.setViewVisibility(rowIds[i], View.GONE);
18631866
}
18641867
i++;
18651868
}

0 commit comments

Comments
 (0)