Do not display clear filter when no filter is applied in call log.

This commit is contained in:
Alex Hart
2023-09-12 10:58:39 -03:00
parent ea52bbea42
commit cf7455c661
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class CallLogPagedDataSource(
remaining -= callEvents.size
}
if (start <= clearFilterStart && remaining > 0) {
if (hasFilter && start <= clearFilterStart && remaining > 0) {
callLogRows.add(CallLogRow.ClearFilter)
}

View File

@@ -108,7 +108,7 @@ class V2FooterPositionDelegate private constructor(
val (left, right) = if (bodyContainer.layoutDirection == View.LAYOUT_DIRECTION_LTR) {
0 to horizontalPadding
} else {
horizontalPadding to 0
horizontalPadding to 0
}
body.padding(right = right, left = left, bottom = footerViews.first().measuredHeight)