Merge "Prevent edit state workspace scale from hiding next pages." into tm-dev

This commit is contained in:
Pat Manning authored and Android (Google) Code Review committed 2022-04-20 17:21:31 +00:00
commit de5d9718ed
2 files changed
+16 -1

No files matched your search

@@ -928,6 +928,13 @@ public class DeviceProfile {
return workspaceSpringLoadShrunkBottom;
}
/**
* Gets the minimum visible amount of the next workspace page when in the spring-loaded state.
*/
public float getWorkspaceSpringLoadedMinimumNextPageVisible() {
return getCellSize().x / 2f;
}
public int getWorkspaceWidth() {
return getWorkspaceWidth(getTotalWorkspacePadding());
}