mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
updating commosn to 5.27.6
This commit is contained in:
@ -57,7 +57,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.26.33'
|
||||
implementation 'com.simplemobiletools:commons:5.27.6'
|
||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||
implementation 'com.github.Armen101:AudioRecordView:1.0.2'
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
||||
val title = it.name
|
||||
val path = it.absolutePath
|
||||
val timestamp = (it.lastModified() / 1000).toInt()
|
||||
val duration = it.absolutePath.getFileDurationSeconds() ?: 0
|
||||
val duration = context.getDuration(it.absolutePath) ?: 0
|
||||
val size = it.length().toInt()
|
||||
val recording = Recording(id, title, path, timestamp, duration, size)
|
||||
recordings.add(recording)
|
||||
|
Reference in New Issue
Block a user