invalidate itemDecoration on predictedRow focus draw

Change-Id: I66c731f00ae1c1292c51ff281957f05fd2d70dfa
This commit is contained in:
Samuel Fufa
2020-10-08 18:42:48 -07:00
parent 8d5b118060
commit 692d2109a6
2 changed files with 3 additions and 6 deletions

View File

@@ -200,7 +200,7 @@ public class FloatingHeaderView extends LinearLayout implements
public View getFocusedChild() {
if (FeatureFlags.ENABLE_DEVICE_SEARCH.get()) {
for (FloatingHeaderRow row : mAllRows) {
if (row.hasVisibleContent()) {
if (row.hasVisibleContent() && row.shouldDraw()) {
return row.getFocusedChild();
}
}