Revert "Revert "Moving DeviceProfile properties into DevicePrope..."
Revert submission 33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK Reason for revert: Error is fixed Reverted changes: /q/submissionid:33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK Change-Id: Ib86824134955903c11e51e52dbfd6368aba1cd50
This commit is contained in:
committed by
Sebastian Franco
parent
1bec329180
commit
e1d31e5406
@@ -1315,7 +1315,7 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
|
||||
@VisibleForTesting
|
||||
int getMaxContentAreaHeight() {
|
||||
DeviceProfile grid = mActivityContext.getDeviceProfile();
|
||||
return grid.availableHeightPx - grid.getTotalWorkspacePadding().y
|
||||
return grid.getDeviceProperties().getAvailableHeightPx() - grid.getTotalWorkspacePadding().y
|
||||
- getFooterHeight();
|
||||
}
|
||||
|
||||
@@ -1963,7 +1963,7 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
|
||||
private int getHeightFromBottom() {
|
||||
BaseDragLayer.LayoutParams layoutParams = (BaseDragLayer.LayoutParams) getLayoutParams();
|
||||
int folderBottomPx = layoutParams.y + layoutParams.height;
|
||||
int windowBottomPx = mActivityContext.getDeviceProfile().heightPx;
|
||||
int windowBottomPx = mActivityContext.getDeviceProfile().getDeviceProperties().getHeightPx();
|
||||
|
||||
return windowBottomPx - folderBottomPx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user