Commit Graph

73 Commits

Author SHA1 Message Date
darthpaul 1134819b25 allow users to customise recording folder
- use SAF on SDK 30+ to give user a change to change the default location where recordings are stored
- since we have requestLegacyExternalStorage="true" in the AndroidManifest, we can enable WRITE_EXTERNAL_STORAGE up to SDK 29 (Android 10)
- modify methods to store recordings in RecorderService to use SAF for SDK 30+ and normal file paths for lower SDK versions.
- at first installation, the app would not have SAF permissions, so we use the old method, using MediaStore and the app's cacheDir until the users decide to change; then we can switch to using SAF
- modify methods to get all recordings in PlayerFragment
   - on SDK 30+, we need to combine recordings got from the MediaStore (getMediaStoreRecordings) and the ones from the recordings folder SAF (getSAFRecordings)
   - on SDK 29, we combine recordings got from the MediaStore (getMediaStoreRecordings) and the ones from direct file path (getLegacyRecordings)
   - on lower SDKs, we just use the file paths  (getLegacyRecordings)
- modify method for playing recordings in PlayerFragment
   -  SDK 30+, when getting recordings with SAF, we store the string of the SAF URI of the file as the Recording#path field, we check if the path is a Document URI and pass that to the MediaPlayer#setDataSource method
   - if the Recording#path field is empty, we get the MediaStore URI using the ID and pass that to the MediaPlayer#setDataSource method
   - in other cases, the Recording#path field is a file path, so we use it.
- in RecordingsAdapter, add support for changes to the paths used for in sharing the recordings
- update the commons module
2022-04-17 16:13:51 +01:00
tibbi 8e1f0a75e7 update version to 5.7.0 2022-04-13 16:57:39 +02:00
tibbi eb6c4f98a5 updating commons and target SDK to 31 2022-04-13 11:39:51 +02:00
tibbi 68ae2e7c79 update version to 5.6.5 2022-03-21 21:50:29 +01:00
tibbi 45b216235d updating commons once again 2022-03-21 21:43:36 +01:00
tibbi 69b36142b0 updating commons 2022-03-21 21:35:11 +01:00
tibbi 1195fac8c5 adding application_preferences intent 2022-03-21 21:10:42 +01:00
tibbi 96516a7cde enable minifying in release mode 2022-02-10 22:13:55 +01:00
tibbi c7765de7af update version to 5.6.4 2022-02-10 09:48:23 +01:00
tibbi a176675acc updating commons 2022-02-10 09:42:05 +01:00
tibbi cc484ca0d6 updating commons 2022-02-09 20:23:28 +01:00
tibbi f5aff9224d renaming basic flavor to core 2022-02-02 22:45:22 +01:00
tibbi 8a24b9ebbf update version to 5.6.3 2022-01-03 23:05:03 +01:00
tibbi 64ef4a6a43 adding basic and fdroid app flavors 2022-01-03 22:58:02 +01:00
tibbi 59585e7858 updating commons 2022-01-03 22:52:15 +01:00
tibbi 64416e7378 update version to 5.6.2 2021-12-07 11:24:39 +01:00
tibbi b1b5414276 updating some libraries 2021-12-07 11:19:20 +01:00
tibbi 9d4e01daa0 increasing padding at some setting items 2021-11-16 12:18:26 +01:00
tibbi e8816b064d update version to 5.6.1 2021-11-15 22:49:44 +01:00
tibbi a309d45c29 removing License and FAQ activities from manifest, they are in Commons already 2021-11-15 22:22:21 +01:00
tibbi 5d2561237a updating commons, UI and new fastscroller 2021-11-15 20:06:27 +01:00
tibbi 832f9ac1d7 use layout animations only if they are enabled in the system 2021-11-13 09:16:24 +01:00
tibbi 9957ae160a updating commons 2021-11-12 19:29:12 +01:00
tibbi 1aa1019097 restyling the Settings page 2021-11-12 14:05:06 +01:00
tibbi d0c4369692 updating commons + some minor things 2021-11-12 11:23:15 +01:00
tibbi 7c727ea2f8 update version to 5.6.0 2021-10-19 23:23:21 +02:00
tibbi 03642d63b4 updating commons 2021-10-19 23:19:14 +02:00
tibbi 00acb3ddf3 updating commons 2021-10-17 17:17:39 +02:00
tibbi eaa8dc002a updating gradle, kotlin, commons 2021-10-17 17:13:32 +02:00
tibbi 0edca1f65e update version to 5.5.1 2021-04-19 22:16:32 +02:00
tibbi 21d52eb2f7 updating commons, kotlin, gradle 2021-04-19 21:36:41 +02:00
tibbi f77bfec4e8 update version to 5.5.0 2021-03-05 22:36:00 +01:00
tibbi caef0051dd allow copying the currently played file name by long pressing it 2021-03-05 18:27:40 +01:00
tibbi 76ee152997 updating kotlin and commons 2021-03-05 18:02:37 +01:00
tibbi 75da53e51b update version to 5.4.1 2021-02-11 13:46:31 +01:00
tibbi 18186fe19c adding a crashfix 2021-02-11 13:12:54 +01:00
tibbi 9f612c2b65 updating kotlin, gradle, commons 2021-02-11 11:29:01 +01:00
tibbi 65160242a1 update version to 5.4.0 2020-12-30 10:52:05 +01:00
tibbi 67e9edc24c updating kotlin, commons, gradle 2020-12-29 23:09:50 +01:00
tibbi 958bca08f3 update version to 5.3.0 2020-11-05 20:39:21 +01:00
tibbi d3abe3906d rewrite the player and recorder fragments into constraintlayouts 2020-11-05 16:37:51 +01:00
tibbi 767c59931f updating commons and gradle 2020-11-05 16:10:10 +01:00
tibbi 93a8ff7df7 update version to 5.2.1 2020-09-28 22:53:22 +02:00
tibbi c8d3c97d10 fix #21, allow choosing between m4a and mp3 file extension 2020-09-28 22:31:57 +02:00
tibbi 00d99b7aac update version to 5.2.0 2020-09-19 19:48:40 +02:00
tibbi bafbd877d2 updating kotlin and commons 2020-09-19 19:29:31 +02:00
tibbi 6fc3c23ef7 updating gradle, kotlin, commons and target SDK to 30 2020-08-23 23:32:05 +02:00
tibbi f32b8fba66 update version to 5.1.3 2020-05-20 23:35:51 +02:00
tibbi 674ea18fc5 fix #10, allow directly sharing recordings 2020-05-20 23:19:27 +02:00
tibbi 8c58532e62 catch and show errors thrown at playing a recording 2020-05-20 22:56:50 +02:00