fix: Missing search result and focus decorator
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
1 parent
a0a2e9ac0a
commit
076b1ea0de
5 files changed
+107
-78
No files matched your search
@@ -1724,6 +1724,13 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
new ViewGroupFocusHelper(mRecyclerView)) : new FocusedItemDecorator(
|
||||
mRecyclerView);
|
||||
mRecyclerView.addItemDecoration(focusedItemDecorator);
|
||||
// LC-Note: This is needed for highlight focused app decoration, this has some problem of it own but purely visual.
|
||||
if (isSearch()) {
|
||||
RecyclerView.ItemDecoration searchDecorator = getMainAdapterProvider().getDecorator();
|
||||
if (searchDecorator != null) {
|
||||
mRecyclerView.addItemDecoration(searchDecorator);
|
||||
}
|
||||
}
|
||||
mOnFocusChangeListener = focusedItemDecorator.getFocusListener();
|
||||
mAdapter.setIconFocusListener(mOnFocusChangeListener);
|
||||
applyPadding();
|
||||
|
||||
Reference in new issue
Block a user