Long screenshots: limit batch capture to 3 pages

Bug: 179378294
Test: manual
Change-Id: I63d524aefb9260e1e211848a46d3ebcaeae4e575
This commit is contained in:
Mark Renouf
2021-02-10 17:11:36 -05:00
parent 5fa550dbeb
commit e8d910de02
2 changed files with 2 additions and 3 deletions

View File

@@ -50,8 +50,8 @@ import javax.inject.Inject;
public class ScrollCaptureClient {
private static final int TILE_SIZE_PX_MAX = 4 * (1024 * 1024);
private static final int TILES_PER_PAGE = 2; // increase once b/174571735 is addressed
private static final int MAX_PAGES = 5;
private static final int MAX_IMAGE_COUNT = MAX_PAGES * TILES_PER_PAGE;
private static final float MAX_PAGES = 3f;
private static final int MAX_IMAGE_COUNT = (int) Math.ceil(MAX_PAGES * TILES_PER_PAGE);
@VisibleForTesting
static final int MATCH_ANY_TASK = ActivityTaskManager.INVALID_TASK_ID;

View File

@@ -67,7 +67,6 @@ public class ScrollCaptureController implements OnComputeInternalInsetsListener
SAVE
}
public static final int MAX_PAGES = 5;
public static final int MAX_HEIGHT = 12000;
private final Connection mConnection;