Skip to content

feat(mobile-android): Screenshot Mode, capture or import, mark up and share on the phone - #4775

Open
AatmanAJ wants to merge 1935 commits into
CapSoftware:mainfrom
AatmanAJ:feat/mobile-android-screenshot
Open

AatmanAJ wants to merge 1935 commits into
CapSoftware:mainfrom
AatmanAJ:feat/mobile-android-screenshot

Conversation

@AatmanAJ

@AatmanAJ AatmanAJ commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on the Studio Mode PR (#4774), which sits on the polish PR (#4768) and the earlier Android PRs. The commits from da656493a to d106f6ea47 are new here: the feature in four commits, a merge of the Studio branch at 43667eb6d (538d08f6a), seven fixes from review, and a second merge of the Studio branch at f0d3e38b52 (d106f6ea47), which brings in the fix that marks a recording's link as copied before it reaches the clipboard (5d4081dc15). A last merge of the Studio branch (681fdcb21) brings in the recording engine's fix that keeps the debug pattern recorder's footage when saving stops early (077ea1786, #4764). Once the PRs below merge, this shows only its own diff.

Screenshot Mode for the Android app: take a screenshot of the phone after a short countdown, or import one, then frame it and mark it up the way desktop Cap's screenshot editor does, and copy, share, save or upload the result.

What is in it

  • Mode. Screenshot is the third capture mode next to Instant and Studio, with a 3, 5 or 10 second delay and an "Import a screenshot" action. The recorder remembers the last mode as before.
  • Capture. ScreenshotService is a foreground service of type mediaProjection. After the system screen capture consent, Cap moves to the background and shows a countdown notification. When it ends, the service creates a virtual display at the screen's full resolution, takes its first frame from an ImageReader, stops the projection and saves the frame as a PNG. A notification says the screenshot is ready, and Cap opens the editor the next time it is in front, in the same way a finished Studio recording opens. The notification carries the screenshot's ID, so tapping it opens the screenshot even after the editor was closed or Android stopped Cap. If no frame arrives within 3 seconds, or the projection cannot start, a notification says the screenshot failed.
  • Import. The system photo picker (PickVisualMedia, images only), so no storage permission is needed. Images longer than 4,096 pixels are scaled down, the same limit as photo uploads.
  • Project model. ScreenshotProject keeps the image size, the background, padding, rounding and shadow shared with Studio, an optional crop and the annotations. Field and enum names follow desktop Cap's screenshot editor: arrow, rectangle, circle, text, draw, highlight and mask, with blur or pixelate masks.
  • Editor. Select, Arrow, Box, Circle, Text, Draw, Highlight, Blur, Pixelate, Crop and Style, with eight colours, stroke width, delete, and undo and redo through the UndoHistory from feat(mobile-android): Studio Mode, record separate tracks, edit and export on the phone #4774. The Style tool reuses Studio's background panel and aspect ratios. A shape is saved when the finger lifts. A crop smaller than 32 pixels and text left blank change nothing.
  • Saving edits. Edits go through one queue that writes them in order in the background, as Studio projects do, and an edit not yet written is what loads if the screenshot is opened again. Only the latest screenshot is kept: taking or importing a new one removes the previous one once the new one is saved, so a failed write keeps the previous screenshot and its edits.
  • Export. Done renders the screenshot at full size through the same drawing code as the editor, writes a PNG to a file of its own, so an image already copied or shared never changes, and offers Copy (a content URI on the clipboard), Share, Save (MediaStore, Pictures/Cap) and Upload to Cap. Upload goes through the existing upload pipeline, which turns images into JPEG at quality 90 as it does for photos, so the server creates a screenshot Cap.
  • Clean-up. Signing out stops a capture that is counting down or saving, waits for the save, and then removes the screenshot and its exports.

Fixed after review

Each fix has a test that failed before it.

  • Capture after sign-out (4d5f1186bb). Signing out deleted screenshots but left ScreenshotService running, so a countdown or save could write a capture after the clean-up for the next account to open. Signing out now stops the capture and waits for it first.
  • Failed replacement (6d6c5aa408). A new capture or import deleted the previous screenshot before writing its own files, so a failed write lost both.
  • Ready notification (a15a7fe3c3). The notification only opened Cap and relied on state held in memory, so it did nothing once that state was gone.
  • Crop drag (52b25b7381). Resizing the canvas to the crop during the drag restarted the gesture and saved the crop at its first usable size. The canvas now keeps the uncropped layout with the crop outlined until the finger lifts.
  • Text taps (7c0755e443). Text labels were saved with no size, so only taps near their start reached them. A label now takes the size of its measured text.
  • Copied image (4f9fd3b17d). Every Done overwrote the same file, so a later Done changed what an earlier Copy would paste.
  • Notification intent (68752a1a71). The ready notification's tap intent matched the one the playback media session points at Cap, so creating that one replaced the screenshot's ID and the tap no longer reopened it. The notification intent now has its own action.

Dependencies and size

  • No new dependencies.
  • Release APK (app-release-unsigned.apk, R8 on): 7,994,030 bytes at 43667eb6d, the base of this PR, and 8,119,906 bytes at d106f6ea47, so 125,876 bytes more.

Security

  • ScreenshotService is not exported, only starts from the app after the system screen capture consent, and stops the projection as soon as it has one frame.
  • The FileProvider is unchanged: not exported, read access granted per share intent or clipboard item, and only cache/exports. Rendered screenshots go to cache/exports/screenshots.
  • Screenshots stay in noBackupFilesDir, so they are not part of cloud backups. Nothing reaches shared storage until the user chooses Save: a device test takes a screenshot, renders it and copies it, and checks that MediaStore has no new image from Cap and that Cap's external storage folders are unchanged.
  • Signing out stops a capture in progress before removing the screenshot, its exports and its FileProvider files. The same test checks that the URI copied to the clipboard can no longer be opened after signing out. Each export has a random path, so an old URI can never point at a later screenshot.
  • The ready notification opens Cap with the screenshot's ID as an extra. Cap only accepts a canonical UUID and only opens a screenshot that is saved on the phone. Saving to Pictures/Cap uses MediaStore with IS_PENDING and needs no storage permission.
  • No new permissions in the merged manifest.

Screenshots

API 35 phone emulator, dark, from the debug gallery, using a drawn sample screen signed in as sam@example.com. The first five are at 8459c0665, before the review fixes. The last two are at 4f9fd3b17d and show what the fixes changed: during a crop drag the whole screenshot stays in view with the crop outlined, and a selected label's outline wraps its text. That label was typed in with the Text tool and then selected. The share sheet sample shows the plain sample image; in the app it shows the rendered result.

Recorder Editor, a box selected Arrow
Recorder in Screenshot Mode Screenshot editor with a box selected Screenshot editor, arrow tool
Style Share
Screenshot editor, style panel Share sheet
Crop, during the drag A label selected
Crop drag with the whole screenshot in view and the crop outlined A selected text label with its outline around the text

Tests

At d106f6ea47: spotlessCheck :capkit:test :app:testDebugUnitTest :app:lintDebug :app:assembleDebug :app:assembleRelease :app:assembleDebugAndroidTest :media:testDebugUnitTest :media:lintDebug :app:testReleaseShrunkUnitTest passes, with lint reporting no errors or warnings.

  • capkit: 303 tests, 7 of them in ScreenshotTest (bounds of drawings and shapes, moving a drawing, the topmost hit and its slop, replacing and removing, clamping and dropping a crop, the visible size after a crop, and JSON with the desktop names).
  • JVM, :app:testDebugUnitTest: 588 tests, 21 of them for Screenshot Mode. ScreenshotEditorModelTest (13: each tool, a drag too short to see, saving only on release, freehand points, blur and pixelate, moving with Select, recolouring, highlight colours, text, editing text, taps across a whole label, cropping, deleting) and ScreenshotProjectsTest (8: a new screenshot loads back, replaces the previous one, keeps the previous one when its replacement cannot be written, leaves nothing behind when its source cannot be written, edits save in order and show before they are written, an edit for a replaced screenshot is dropped, every export is its own file, and removing everything removes exports). Two of the model tests found bugs that are fixed here: a tiny crop drag was turned into a 32 pixel crop, and blank text triggered a save that changed nothing.
  • Shrunk release classes: 3 tests. Media module: 66 tests.

Device runs

Against the fixture server, at 68752a1a71, with RecorderTest, MainShellTest, ScreenRecordingTest, StudioTest, ScreenshotTest and ScreenshotEditorTest. The later merge in d106f6ea47 changes only the recording coordinator and its JVM test, so these runs were not repeated after it.

  • API 35 (phone, 1080 by 2424): 31 of 31, with nothing in the crash buffer.
  • ScreenshotTest (7 tests) takes real screenshots through the system consent dialog and the countdown. It checks that the saved PNG is the size of the screen, opens it from the "ready" notification, renders it and uploads it to the fixture server as an image. It signs out during a 10 second countdown and checks that the capture stopped and nothing was saved. It takes, renders and copies a screenshot, checks that nothing reached shared storage, signs out, and checks that the screenshot, its export and the copied URI are gone. It closes the editor and reopens the screenshot from the notification, and does the same again after creating the playback session's intent for Cap. It renders a project with a colour background, a blur mask and a box and checks the pixels, and it imports an image longer than 4,096 pixels and an unreadable file.
  • ScreenshotEditorTest drags a crop in two steps and checks that the crop follows the finger to the end.
  • API 37 (an emulator wiped at boot): 29 of 31, with nothing in the crash buffer. The 2 failures are StudioTest's export tests, which fail on this emulator image because every MediaCodec decoder fails on its first input, as described in feat(mobile-android): Studio Mode, record separate tracks, edit and export on the phone #4774, and the log shows the same decoder errors. In an earlier full run on this image, on an earlier local build of this branch, the notification test failed: the tap opened Cap through its launcher intent rather than the notification's own intent, after the failed Studio tests had left other Cap notifications in the shade. Run on its own, the test passed, and the tap opened Cap through the notification's intent with the screenshot's ID. The test now clears Cap's notifications before it starts. Before the run, I granted camera, microphone and notification permissions with adb. Screenshot Mode has not been run on a real phone yet.

Left out

Annotations can be moved with Select but have no resize handles, so a shape is redrawn to change its size. Uploads are JPEG because they reuse the existing photo upload path. Only one screenshot is kept on the phone, and there is no list of past screenshots.

Confidence Score: 0/5RetriggerView in Greptile

The PR is not ready to merge because earlier findings still include private images surviving sign-out, broken device-test builds, and recording lifecycle errors.

Findings

  1. P1 Security Imported images survive sign-out ▶
  2. P1 Cancelled recordings still look active ▶
  3. P1 Cancelled Loom imports continue ▶
  4. P1 Cancelling uploads can crash Cap ▶
  5. P1 Hidden button discards recording ▶
  6. P1 Sidebar actions target wrong page ▶
  7. P1 Organization analytics cannot open ▶
  8. P1 Recording starts after leaving ▶
  9. P1 Background completion notices vanish ▶
  10. P1 Device tests cannot build ▶
  11. P2 Retry stays stuck ▶
  12. P2 Copied message appears too early ▶
  13. P2 Background colours become tiny ▶
  14. P2 Overlap check misses the crown ▶
Fix with agent prompt
### Issue 1
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/record/RecordScreen.kt:162-166
If sign-out happens while an image is decoding, this import can recreate private image files after cleanup finishes. Cancelling the recorder's coroutine does not stop the blocking decode and file writes. `removeLocalData()` waits for `ScreenshotService`, but not this import.

Track imports with the cleanup work, wait for them before deleting files, and reject imports from an old session.

**How this was verified:** The picker calls a blocking decode followed by `projects.create()` without an account check, while sign-out deletes screenshots without waiting for that work.

### Issue 2
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/services/UploadActions.kt:56-57
Cancelling a recording upload deletes its files and Cap, but `RecordingCoordinator` ignores the resulting `Discarded` event. The recent entry stays uploading, and `UploadCenter.followRecordings()` keeps its timer. After 45 seconds without progress, that timer posts the cancelled upload's notification again.

Handle cancellation in the coordinator, remove the recent entry, and stop its notification timer.

### Issue 3
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/app/Notifications.kt:206-211
The new Cancel upload action appears on Loom imports, but `UploadActionReceiver` only cancels local file uploads and recordings. `importLoom()` creates neither kind of local record. For Loom, the receiver only hides the notification; the server import and its watcher keep running. Users still get the imported Cap, and its notification can return.

Route Loom cancellation to work that stops the import, or leave this action off Loom notifications.

### Issue 4
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/services/UploadActions.kt:undefined-65
If storage is full or a file write fails, cancelling a file upload can crash Cap. `pendingUploads.remove()` rewrites `pending.json` and can throw `IOException`, but this call runs in a standalone coroutine with no catch. The exception escapes before notification cleanup.

Catch the write failure and report it without crashing, as `UploadWorker.forget()` already does.

### Issue 5
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/record/RecorderHome.kt:267-273
The new account button stays clickable when `dialAlpha` reaches zero during recording. Tapping its hidden position opens Settings and removes `RecordScreen`. Cleanup then calls `model.teardown()`, which discards the active camera recording without confirmation. Disable account and library navigation during capture and countdowns.

### Issue 6
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/MainShell.kt:333-338
On a large screen with a Cap selected, the whole `backStack` ends in `Route.Cap`. This new check therefore ignores folder taps in the still-visible sidebar. The sidebar Close and folder Back actions also remove the selected Cap instead of closing the sidebar page. Keep these actions tied to the library portion of the stack, as `openFromLibrary()` did.

### Issue 7
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/MainShell.kt:127-129
Removing `Route.Analytics` and the Analytics tab leaves organization analytics with no way to open it. The only remaining `AnalyticsScreen` route uses `AnalyticsScope.Cap`, so users can inspect one Cap but cannot see organization totals or Top Caps. Add a replacement entry point before removing the tab.

### Issue 8
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/record/RecordingCountdown.kt:undefined-29
After a countdown tick, `model.record()` now runs on `Dispatchers.Default`. If the user leaves while `recordings.begin()` writes the job, `ON_STOP` can cancel the countdown and call `model.pause()` before the worker sends `Start` and marks the model as recording. The earlier `stateVersion` check cannot catch this ordering, leaving a recording job active after the camera closes.

Keep the recording action on the main thread so leaving and starting remain ordered.

### Issue 9
apps/mobile-android/capkit/src/main/kotlin/so/cap/kit/RecordingUploads.kt:58-59
`MutableSharedFlow` has no replay here, so it drops events when nobody is listening. `extraBufferCapacity` does not keep them for a future listener. `RecordingUploadWorker` can resume uploads in a background process without starting `RecordingCoordinator`. A completed upload then removes its saved job and drops `Completed`, so opening Cap later cannot deliver the completion notification.

Preserve pending events until the coordinator consumes them, or start a durable consumer before background uploads resume.

### Issue 10
apps/mobile-android/app/src/androidTest/kotlin/so/cap/mobile/StudioTest.kt:54-59
`StudioTest.kt` now imports missing types such as `CaptionSettings` and `StudioBatch`, calls the missing `recordWithoutTheOverlay()` helper, and passes `motionBlur` and `captions` to `startStudioExport()`, which accepts neither argument. This prevents the Android test APK from compiling, so no device tests can run. Bring in the matching implementation or remove the unsupported tests and restore calls that match this branch.

### Issue 11
apps/mobile-android/capkit/src/main/kotlin/so/cap/kit/RecordingUploads.kt:141-146
If `prepareRequest()` fails because a segment cannot be read, `startUploads()` has already marked it `UPLOADING` and added it to `inFlight`, but never starts its transfer. The new `retry()` keeps both values. Clicking Try again then leaves the upload stuck instead of retrying or reporting the missing file again.

Clear abandoned transfer entries and return their segments to `PENDING` before retrying.

### Issue 12
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/record/AfterScreen.kt:269-270
The uploading screen always says the link is already copied. On a slow connection, a recording can stop before `createRecording()` returns. At that point `shareUrl` is null, `copyLinkIfNewest()` has copied nothing, and Share and Copy do nothing. Following the message can paste the clipboard's previous contents instead.

Show a waiting message and disable those buttons until the link exists. Show the copied claim only when `linkCopied` is true.

### Issue 13
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/screenshot/ScreenshotEditorScreen.kt:852-856
`ColourSwatches()` now squeezes all 16 background colours into one row. On a 360 dp phone, the panel's horizontal padding leaves 312 dp, so `fittedSize` becomes 8 dp. After `CapColorSwatch` applies its padding, each colour has only a 4 dp coloured area and a 12 dp box to press. This makes colours hard to distinguish and choose. Keep a usable minimum size and let the existing horizontal row scroll.

### Issue 14
apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/record/RecorderHome.kt:undefined-208
The new `recorder-dial-clearance` marker applies `dialAccessibilityScale` in its offset and again through its parent’s `graphicsLayer`. `Crown` uses an unscaled radius inside that same parent. At `fontScale = 2`, the marker sits about 53 dp below the crown’s outer limit, so the new assertion can pass while the timer overlaps the crown.

Use an unscaled offset inside the layer, or place the marker outside it.

```suggestion
                        y = centerY - (CrownRadius + 30.dp),
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds Android Screenshot mode for capture, import, editing and sharing.

  • Android users can capture or import a screenshot from the recorder.
  • The screenshot editor lets people mark up and frame an image.
  • Screenshots save as local projects and export as separate PNG files.
  • Mobile sign-in callbacks return the state for that sign-in attempt.
  • The mobile API tells Cap owners which sharing choices their organization allows.

Reviews (56) · Last reviewed commit: "Merge branch 'final-round/importfix-stud..." · Reviewed by Greptile

@vercel

vercel Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@AatmanAJ is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

@AatmanAJ

AatmanAJ commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@AatmanAJ

AatmanAJ commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

1 similar comment
@AatmanAJ

AatmanAJ commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

2 similar comments
@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

Comment on lines +321 to +322
endDistance <= slop && endDistance <= startDistance -> ArrowEnd.END
startDistance <= slop -> ArrowEnd.START

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Arrow handles miss nearby presses

distance() returns a squared distance, but arrowEndAt() compares it with the unsquared slop. This shrinks the handles’ touch area from slop to its square root. On a full-size screenshot shown in the small preview, pressing near a visible handle can move the whole arrow instead of resizing its end.

Compare with slop * slop, or return the actual distance.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/screenshot/ScreenshotEditorModel.kt
Line: 321-322

Comment:
**Arrow handles miss nearby presses**

`distance()` returns a squared distance, but `arrowEndAt()` compares it with the unsquared `slop`. This shrinks the handles’ touch area from `slop` to its square root. On a full-size screenshot shown in the small preview, pressing near a visible handle can move the whole arrow instead of resizing its end.

Compare with `slop * slop`, or return the actual distance.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Comment on lines +192 to +201
if (job != null) {
scope.launch {
val outcome = snapshotFlow {
job.shareUrl to job.phase
}
.first { (link, phase) ->
!link.isNullOrBlank() || phase is UploadPhase.Failed
}
val link = outcome.first
if (!link.isNullOrBlank()) copyLink(context, link, toasts)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Closing the editor cancels copying

The promised link copy runs in ScreenshotSession’s rememberCoroutineScope(). If the user taps Upload and closes the editor before createUpload returns, removing the route cancels this wait. The upload continues, but its link is never copied.

Keep the copy request with the upload job rather than the editor’s lifetime.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/screenshot/ScreenshotRoute.kt
Line: 192-201

Comment:
**Closing the editor cancels copying**

The promised link copy runs in `ScreenshotSession`’s `rememberCoroutineScope()`. If the user taps Upload and closes the editor before `createUpload` returns, removing the route cancels this wait. The upload continues, but its link is never copied.

Keep the copy request with the upload job rather than the editor’s lifetime.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

2 similar comments
@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

Comment on lines +223 to +225
.drawBehind {
if (highlighted) {
drawRoundRect(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Camera video covers its outline

The new camera outline uses drawBehind, underneath the video that fills the same box. The video covers the dashed outline when a frame is shown, so selecting the Camera tool does not show the intended highlight. Draw the outline after the camera content instead.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/studio/StudioStage.kt
Line: 223-225

Comment:
**Camera video covers its outline**

The new camera outline uses `drawBehind`, underneath the video that fills the same box. The video covers the dashed outline when a frame is shown, so selecting the Camera tool does not show the intended highlight. Draw the outline after the camera content instead.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@AatmanAJ

AatmanAJ commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

Comment on lines +116 to +121
detectDragGestures { change, _ ->
change.consume()
val point = change.position
val x = (point.x - frame.display.x) / frame.display.width
val y = (point.y - frame.display.y) / frame.display.height
onTapScreen(x.coerceIn(0.0, 1.0), y.coerceIn(0.0, 1.0))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Zoom drags fill undo history

Dragging a selected zoom calls focusZoom() on every pointer update. Each call goes through change() and adds another undo entry. Undo therefore moves the frame back only a tiny distance, and a long drag can push earlier edits out of the 100-entry history. Use adjust() during the drag and commit once when it ends.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/studio/StudioStage.kt
Line: 116-121

Comment:
**Zoom drags fill undo history**

Dragging a selected zoom calls `focusZoom()` on every pointer update. Each call goes through `change()` and adds another undo entry. Undo therefore moves the frame back only a tiny distance, and a long drag can push earlier edits out of the 100-entry history. Use `adjust()` during the drag and commit once when it ends.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

# Conflicts:
#	apps/mobile-android/app/src/main/kotlin/so/cap/mobile/features/record/RecordScreen.kt
Keeps this layer's theme root, which already wraps Root in the picture
in picture box.
…ng settings

The settings tests leave a ten second countdown with the camera and
microphone off, so Studio tests that ran after them waited out a longer
countdown than the bounded recording wait allows. Each Studio test now
sets the recording defaults it relies on before it opens the recorder.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant