Add call recordings to shared items

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-03-16 16:33:05 +01:00
parent 111905bba1
commit 5aed5f1d43
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
3 changed files with 13 additions and 0 deletions

View file

@ -3,6 +3,8 @@
*
* @author Tim Krüger
* @author Álvaro Brey
* @author Marcel Hibbe
* Copyright (C) 2023 Marcel Hibbe <dev@mhibbe.de>
* Copyright (C) 2022 Álvaro Brey
* Copyright (C) 2022 Tim Krüger <t@timkrueger.me>
*
@ -189,6 +191,13 @@ class SharedItemsActivity : AppCompatActivity() {
binding.sharedItemsTabs.addTab(tabAudio)
}
if (sharedItemTypes.contains(SharedItemType.RECORDING)) {
val tabRecording: TabLayout.Tab = binding.sharedItemsTabs.newTab()
tabRecording.tag = SharedItemType.RECORDING
tabRecording.setText(R.string.shared_items_recording)
binding.sharedItemsTabs.addTab(tabRecording)
}
if (sharedItemTypes.contains(SharedItemType.VOICE)) {
val tabVoice: TabLayout.Tab = binding.sharedItemsTabs.newTab()
tabVoice.tag = SharedItemType.VOICE

View file

@ -3,6 +3,8 @@
*
* @author Tim Krüger
* @author Álvaro Brey
* @author Marcel Hibbe
* Copyright (C) 2023 Marcel Hibbe <dev@mhibbe.de>
* Copyright (C) 2022 Álvaro Brey
* Copyright (C) 2022 Tim Krüger <t@timkrueger.me>
*
@ -29,6 +31,7 @@ enum class SharedItemType {
AUDIO,
FILE,
MEDIA,
RECORDING,
VOICE,
LOCATION,
DECKCARD,

View file

@ -594,6 +594,7 @@ How to translate with transifex:
<!-- Shared items -->
<string name="shared_items_media">Media</string>
<string name="shared_items_file">File</string>
<string name="shared_items_recording">Call recording</string>
<string name="shared_items_audio">Audio</string>
<string name="shared_items_voice">Voice</string>
<string name="shared_items_other">Other</string>