mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
resolved conflicts for e78e3d73 to ub-launcher3-master
Change-Id: Idc119a57e21cf6016ee0fd91866839301db072d6
This commit is contained in:
@@ -1042,7 +1042,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
}
|
||||
|
||||
void visualizeDropLocation(View v, Bitmap dragOutline, int originX, int originY, int cellX,
|
||||
int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) {
|
||||
int cellY, int spanX, int spanY, boolean resize, DropTarget.DragObject dragObject) {
|
||||
final int oldDragCellX = mDragCell[0];
|
||||
final int oldDragCellY = mDragCell[1];
|
||||
|
||||
@@ -1051,6 +1051,9 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
}
|
||||
|
||||
if (cellX != oldDragCellX || cellY != oldDragCellY) {
|
||||
Point dragOffset = dragObject.dragView.getDragVisualizeOffset();
|
||||
Rect dragRegion = dragObject.dragView.getDragRegion();
|
||||
|
||||
mDragCell[0] = cellX;
|
||||
mDragCell[1] = cellY;
|
||||
|
||||
@@ -1106,6 +1109,18 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
Utilities.scaleRectAboutCenter(r, getChildrenScale());
|
||||
mDragOutlineAnims[mDragOutlineCurrent].setTag(dragOutline);
|
||||
mDragOutlineAnims[mDragOutlineCurrent].animateIn();
|
||||
|
||||
if (dragObject.stateAnnouncer != null) {
|
||||
String msg;
|
||||
if (isHotseat()) {
|
||||
msg = getContext().getString(R.string.move_to_hotseat_position,
|
||||
Math.max(cellX, cellY) + 1);
|
||||
} else {
|
||||
msg = getContext().getString(R.string.move_to_empty_cell,
|
||||
cellY + 1, cellX + 1);
|
||||
}
|
||||
dragObject.stateAnnouncer.announce(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user