Restore original scaleRectAboutCenter method.
Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
This commit is contained in:
1 parent
e96798e885
commit
6f6a06ac47
3 files changed
+20
-7
No files matched your search
@@ -403,8 +403,7 @@ public class Workspace extends PagedView
|
||||
float scale = 1;
|
||||
if (isWidget) {
|
||||
DeviceProfile profile = mLauncher.getDeviceProfile();
|
||||
scale = Utilities.shrinkRectAboutCenter(r, profile.appWidgetScale.x,
|
||||
profile.appWidgetScale.y);
|
||||
scale = Utilities.shrinkRect(r, profile.appWidgetScale.x, profile.appWidgetScale.y);
|
||||
}
|
||||
size[0] = r.width();
|
||||
size[1] = r.height();
|
||||
@@ -3499,7 +3498,7 @@ public class Workspace extends PagedView
|
||||
Rect r = estimateItemPosition(layout, targetCell[0], targetCell[1], spanX, spanY);
|
||||
if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET) {
|
||||
DeviceProfile profile = mLauncher.getDeviceProfile();
|
||||
Utilities.shrinkRectAboutCenter(r, profile.appWidgetScale.x, profile.appWidgetScale.y);
|
||||
Utilities.shrinkRect(r, profile.appWidgetScale.x, profile.appWidgetScale.y);
|
||||
}
|
||||
loc[0] = r.left;
|
||||
loc[1] = r.top;
|
||||
|
||||
Reference in new issue
Block a user