Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8d910de authored by Mark Renouf's avatar Mark Renouf
Browse files

Long screenshots: limit batch capture to 3 pages

Bug: 179378294
Test: manual
Change-Id: I63d524aefb9260e1e211848a46d3ebcaeae4e575
parent 5fa550db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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;