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

Commit b461b20c authored by Annie Chin's avatar Annie Chin
Browse files

Show "Empty History" only when completely empty.

Fixes: 33107214

Do not show "Empty History" view when there is a Current Expression.

Change-Id: I437fd3c4d71e0d80179365c886078a3499c9c184
parent b2e96181
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -158,7 +158,7 @@ public class HistoryFragment extends Fragment {
            for (long i = 0; i < maxIndex; ++i) {
            for (long i = 0; i < maxIndex; ++i) {
                newDataSet.add(null);
                newDataSet.add(null);
            }
            }
            if (maxIndex == 0) {
            if (newDataSet.isEmpty()) {
                newDataSet.add(new HistoryItem());
                newDataSet.add(new HistoryItem());
            }
            }
            mDataSet = newDataSet;
            mDataSet = newDataSet;