Merge "Log shortcuts open on ACTION_UP instead of in showForIcon()." into ub-launcher3-calgary
This commit is contained in:
commit
650cd2377b
3 files changed
+10
-36
No files matched your search
@@ -209,12 +209,8 @@ public class AllAppsRecyclerView extends BaseRecyclerView
|
||||
|
||||
@Override
|
||||
public void fillInLaunchSourceData(View v, ItemInfo info, Target target, Target targetParent) {
|
||||
targetParent.containerType = getContainerType(v);
|
||||
}
|
||||
|
||||
public int getContainerType(View v) {
|
||||
if (mApps.hasFilter()) {
|
||||
return LauncherLogProto.SEARCHRESULT;
|
||||
targetParent.containerType = LauncherLogProto.SEARCHRESULT;
|
||||
} else {
|
||||
if (v instanceof BubbleTextView) {
|
||||
BubbleTextView icon = (BubbleTextView) v;
|
||||
@@ -223,11 +219,12 @@ public class AllAppsRecyclerView extends BaseRecyclerView
|
||||
List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems();
|
||||
AlphabeticalAppsList.AdapterItem item = items.get(position);
|
||||
if (item.viewType == AllAppsGridAdapter.VIEW_TYPE_PREDICTION_ICON) {
|
||||
return LauncherLogProto.PREDICTION;
|
||||
targetParent.containerType = LauncherLogProto.PREDICTION;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
return LauncherLogProto.ALLAPPS;
|
||||
targetParent.containerType = LauncherLogProto.ALLAPPS;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user