mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Consolidate Search result UIs
- Allow SearchAction to be represented by SearchResultIcon and SearchResultIconRow - Fix tap enter to launch regression - Remove Plugin Pipeline Bug: 177223401 Test: Manual Change-Id: Id1d445f6af3f80f840d567165051188c78230ed0
This commit is contained in:
@@ -547,10 +547,15 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
|
||||
return mLauncher.startActivitySafely(v, headerItem.getIntent(), headerItem);
|
||||
}
|
||||
AdapterItem focusedItem = getActiveRecyclerView().getApps().getFocusedChild();
|
||||
if (mSearchAdapterProvider.onAdapterItemSelected(focusedItem)) {
|
||||
return true;
|
||||
if (focusedItem != null) {
|
||||
View focusedView = getActiveRecyclerView().getLayoutManager()
|
||||
.findViewByPosition(focusedItem.position);
|
||||
if (focusedView != null && mSearchAdapterProvider.onAdapterItemSelected(focusedItem,
|
||||
focusedView)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (focusedItem.appInfo != null) {
|
||||
if (focusedItem != null && focusedItem.appInfo != null) {
|
||||
ItemInfo itemInfo = focusedItem.appInfo;
|
||||
return mLauncher.startActivitySafely(v, itemInfo.getIntent(), itemInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user