Skip to content

Added File Transfer Modal Ui, and camera recording and mic fixes

Latest

Choose a tag to compare

@jackhallloween21 jackhallloween21 released this 03 Sep 09:03
0a6d580

1.Removed Total file, Progress was stuck at 0% fixed and added stop or cancel transfer
total 43872768 in every folder — phantom row, now gone
That wasn't a file at all — it was ls -la's total N summary line being parsed as an entry. The parser skipped empty lines but not this, so it appeared in every folder with a checkbox. One-line fix to skip /^total\s+\d+$/. (Selecting it before would also have poisoned downloads with a guaranteed-failed entry.)

  1. Stuck "0%" while gigabytes move
    Your screenshot shows the exact failure: stat gave no usable total for that file, so the UI sat at 0% with "Calculating…" while 1.5 GB flowed. Two fixes:
    Sizes now travel with the request — the file list already knows every size from ls, so selections carry a sizeHint and the first progress event has totals immediately (verified: first event carried totalBytes: 67203777).
    Bytes-moved headline — when no total exists, the big readout shows 1.5 GB transferred instead of a lying 0% complete.

  2. Upload MBs
    adb push reports nothing mid-flight, so the main process now runs the push as a tracked child while polling the remote size every 500ms. Proven live: a 67MB upload emitted 54%, 89% with real byte counts; totals are announced up-front from local stat.

  3. Stop button
    New Stop button in the sheet header (× still just hides to the pill). A transfer registry tracks live child processes per transfer ID; Stop kills them, loops abort between files, and handlers report {cancelled: true} so the sheet shows "Transfer cancelled" instead of an error. Batch return shapes changed to {results, cancelled} — call sites updated. Also fixed as a bonus: progress events now carry the transfer ID, so a previous transfer's late events can't paint over a new one.