|
@@ -87,7 +87,7 @@ class MusicEditDialog : DialogFragment() {
|
|
|
startTime.text = TimeUtils.getPlayMovieTimeFormat(0)
|
|
|
endTime.text = TimeUtils.getPlayMovieTimeFormat(it.endTime)
|
|
|
volumeSeekBar.progress = (it.volume * volumeSeekBar.max).toInt()
|
|
|
- volumeText.text = "${volumeSeekBar.progress} %"
|
|
|
+ volumeText.text = getString(R.string.volume_percentage, volumeSeekBar.progress)
|
|
|
|
|
|
play.setOnClickListener { _ ->
|
|
|
val startPosition = it.duration * headScrollRatio
|
|
@@ -114,7 +114,7 @@ class MusicEditDialog : DialogFragment() {
|
|
|
|
|
|
volumeSeekBar.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
|
|
|
override fun onProgressChanged(p0: SeekBar?, p1: Int, p2: Boolean) {
|
|
|
- volumeText.text = "$p1 %"
|
|
|
+ volumeText.text = getString(R.string.volume_percentage, p1)
|
|
|
|
|
|
val volume = p1.toFloat() / volumeSeekBar.max.toFloat()
|
|
|
listener?.onMusicVolumeChanged(volume)
|