Adds ability to use LauncherPreviewRenderer in Sandbox.

This is mostly a proof-of-concept for future use and
tweaks as desired by UX.

The idea is to better replicate the actual UI.

Screenshot: https://drive.google.com/file/d/1EGDgcrSH2QZuSh6P3zWLBl6L8Xd-gtFY/view?usp=sharing

Bug: 148542211
Change-Id: Ibed4b8118346ef72599463c9fd6a2f71166993fd
This commit is contained in:
Andy Wickham
2020-08-09 21:49:18 -07:00
parent 7144004c56
commit 9e754b008d
10 changed files with 133 additions and 15 deletions

View File

@@ -130,12 +130,16 @@ public interface WorkspaceLayoutManager {
}
child.setHapticFeedbackEnabled(false);
child.setOnLongClickListener(ItemLongClickListener.INSTANCE_WORKSPACE);
child.setOnLongClickListener(getWorkspaceChildOnLongClickListener());
if (child instanceof DropTarget) {
onAddDropTarget((DropTarget) child);
}
}
default View.OnLongClickListener getWorkspaceChildOnLongClickListener() {
return ItemLongClickListener.INSTANCE_WORKSPACE;
}
Hotseat getHotseat();
CellLayout getScreenWithId(int screenId);