mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 05:25:31 +03:00
Add call recordings to shared items
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
111905bba1
commit
5aed5f1d43
3 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue