use the new URI at deleting files from mediastore
This commit is contained in:
parent
11e03dd0e0
commit
7744f86950
|
@ -52,7 +52,8 @@ class RenameRecordingDialog(val activity: BaseSimpleActivity, val recording: Rec
|
|||
}
|
||||
|
||||
private fun updateMediaStoreTitle(recording: Recording, newTitle: String) {
|
||||
val uri = ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, recording.id.toLong())
|
||||
val baseUri = MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)
|
||||
val uri = ContentUris.withAppendedId(baseUri, recording.id.toLong())
|
||||
val oldExtension = recording.title.getFilenameExtension()
|
||||
val newDisplayName = "${newTitle.removeSuffix(".$oldExtension")}.$oldExtension"
|
||||
|
||||
|
|
|
@ -4,6 +4,14 @@
|
|||
<string name="recording_saved_successfully">Nahrávka bola uložená ako \n\"%s\"</string>
|
||||
<string name="recording">Nahráva sa</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">Ste si istý, že chcete odstrániť %s?</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
<plurals name="delete_recordings">
|
||||
<item quantity="one">%d nahrávku</item>
|
||||
<item quantity="few">%d nahrávky</item>
|
||||
<item quantity="other">%d nahrávok</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="try_hiding_notification">Skúsiť ukryť nahrávaciu notifikáciu</string>
|
||||
<string name="save_recordings_in">Ukladať nahrávky do</string>
|
||||
|
|
|
@ -4,6 +4,13 @@
|
|||
<string name="recording_saved_successfully">Recording saved successfully as\n\"%s\"</string>
|
||||
<string name="recording">Recording</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">Are you sure you want to delete %s?</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
<plurals name="delete_recordings">
|
||||
<item quantity="one">%d recording</item>
|
||||
<item quantity="other">%d recordings</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="try_hiding_notification">Try hiding the recording notification</string>
|
||||
<string name="save_recordings_in">Save recordings in</string>
|
||||
|
|
Loading…
Reference in New Issue