Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ed80d58 authored by Chris Wren's avatar Chris Wren
Browse files

Don't assume digest lines are GONE, we may be recycling them.

Bug: 6500945
Change-Id: I0f01ccdde25bebb8335f0d34408877b895d286ff
parent 2b9eba55
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1852,14 +1852,17 @@ public class Notification implements Parcelable
            int[] rowIds = {R.id.inbox_text0, R.id.inbox_text1, R.id.inbox_text2, R.id.inbox_text3,
                    R.id.inbox_text4};

            // Make sure all rows are gone in case we reuse a view.
            for (int rowId : rowIds) {
                contentView.setViewVisibility(rowId, View.GONE);
            }

            int i=0;
            while (i < mTexts.size() && i < rowIds.length) {
                CharSequence str = mTexts.get(i);
                if (str != null && !str.equals("")) {
                    contentView.setViewVisibility(rowIds[i], View.VISIBLE);
                    contentView.setTextViewText(rowIds[i], str);
                } else {
                    contentView.setViewVisibility(rowIds[i], View.GONE);
                }
                i++;
            }