Moving dropTarget variables in DeviceProfile to their own class
Bug: 419264653 Flag: EXEMPT refactor Test: DeviceProfileDumpTest Test: All Image tests Change-Id: I8fc519ec8adcda6495ac7c9a9c747b6a80615547
This commit is contained in:
1 parent
3b04cf3155
commit
609df338cc
4 files changed
+106
-49
No files matched your search
@@ -287,7 +287,8 @@ public abstract class ButtonDropTarget extends TextView
|
||||
@Override
|
||||
public void getHitRectRelativeToDragLayer(android.graphics.Rect outRect) {
|
||||
super.getHitRect(outRect);
|
||||
outRect.bottom += mActivityContext.getDeviceProfile().dropTargetDragPaddingPx;
|
||||
outRect.bottom +=
|
||||
mActivityContext.getDeviceProfile().getDropTargetProfile().getDragPaddingPx();
|
||||
|
||||
sTempCords[0] = sTempCords[1] = 0;
|
||||
mActivityContext.getDragLayer().getDescendantCoordRelativeToSelf(this, sTempCords);
|
||||
|
||||
Reference in new issue
Block a user