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

Skip to content
Commit 625a00b5 authored by Michael W's avatar Michael W
Browse files

Recorder: Set result and pass last recorded URI

* Apps starting the recorder with
  https://developer.android.com/reference/android/provider/MediaStore.Audio.Media#RECORD_SOUND_ACTION
  expect a proper output, which is
  a) a RESULT_OK in case the user successfully recorded something
  b) the uri of the recording so they can work with it
     (example: attach it to a mail)

Tested:
- Start Recorder with startActivityForResult (worked before)
- Record audio, press back: Got a proper result and uri
- Start again, don't record, go back: no RESULT_OK, no URI
- Start again, record, go to last recordings and delete it, then
  go back: no RESULT_OK, no URI
- Start again, record, delete recording from share notification:
  no RESULT_OK, no URI

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3039
Change-Id: I20493e067cecd3631b301ec48783670681d5fcc2
parent 519ce7dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment