mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
99d814e54b
@@ -1018,8 +1018,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
cellToRect(cellX, cellY, spanX, spanY, r);
|
||||
if (v instanceof LauncherAppWidgetHostView) {
|
||||
DeviceProfile profile = mLauncher.getDeviceProfile();
|
||||
Utilities.shrinkRectAboutCenter(r, profile.appWidgetScale.x,
|
||||
profile.appWidgetScale.y);
|
||||
Utilities.shrinkRect(r, profile.appWidgetScale.x, profile.appWidgetScale.y);
|
||||
}
|
||||
} else {
|
||||
// Find the top left corner of the rect the object will occupy
|
||||
@@ -1059,7 +1058,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
r.set(left, top, left + dragOutline.getWidth(), top + dragOutline.getHeight());
|
||||
}
|
||||
|
||||
Utilities.shrinkRectAboutCenter(r, mChildScale, mChildScale);
|
||||
Utilities.scaleRectAboutCenter(r, mChildScale);
|
||||
mDragOutlineAnims[mDragOutlineCurrent].setTag(dragOutline);
|
||||
mDragOutlineAnims[mDragOutlineCurrent].animateIn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user