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

Skip to content

5244-Fix_video_preview_uri_issue

Fahim Salam Chowdhury requested to merge 5244-Fix_video_preview_uri_issue into master

Description

After recording video, clicking the gallery icon of the ~Camera app caused the ~Gallery app to crash. This MR fix this issue.

Issue(s)

Test environment

Download apk from https://gitlab.e.foundation/e/os/camera/-/jobs/287785/artifacts/file/app/build/outputs/apk/debug/app-debug.apk. Install in your device, open newly installed camera app.

Test procedures

Open ~Camera app, record some video. After record finished, click the gallery view icon. It should open the ~Gallery app with the recorded video without crashing.

Technical details

MediaScannerConnection.scanFile providing wrong uri for video files. To resolve this, when we record video, we need to fetch the latest video from the gallery.

Screenshots

ScreenRecord-2022-04-12-14-56-28

Check list

  • Self review
  • Test procedure explained
  • Tested on fresh install
  • Tested applied as an update
  • License
  • Internal documentation
  • User documentation
Edited by Anmol Agrawal

Merge request reports

Loading