allow copying the currently played file name by long pressing it
This commit is contained in:
parent
91f2e61f13
commit
caef0051dd
|
@ -56,7 +56,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.34.10'
|
implementation 'com.simplemobiletools:commons:5.34.11'
|
||||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||||
implementation 'com.github.Armen101:AudioRecordView:1.0.2'
|
implementation 'com.github.Armen101:AudioRecordView:1.0.2'
|
||||||
implementation 'androidx.documentfile:documentfile:1.0.1'
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
||||||
|
|
|
@ -113,6 +113,13 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
||||||
playRecording(prevRecording, true)
|
playRecording(prevRecording, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player_title.setOnLongClickListener {
|
||||||
|
if (player_title.value.isNotEmpty()) {
|
||||||
|
context.copyToClipboard(player_title.value)
|
||||||
|
}
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
next_btn.setOnClickListener {
|
next_btn.setOnClickListener {
|
||||||
val adapter = getRecordingsAdapter()
|
val adapter = getRecordingsAdapter()
|
||||||
if (adapter == null || adapter.recordings.isEmpty()) {
|
if (adapter == null || adapter.recordings.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue