|
@@ -140,6 +140,7 @@ class MovieEditActivity : AppCompatActivity(), DialogInterface.OnDismissListener
|
|
|
movieEditView.onPlayClickListener = View.OnClickListener(this::playMovie)
|
|
|
movieEditView.onPauseClickListener = View.OnClickListener(this::pauseMovie)
|
|
|
movieEditView.onAddMusicClickListener = View.OnClickListener(this::addMusic)
|
|
|
+ movieEditView.onEditMusicClickListener = View.OnClickListener(this::editMusic)
|
|
|
movieEditView.onDeleteMusicClickListener = View.OnClickListener(this::deleteMusic)
|
|
|
movieEditView.onSaveMovieClickListener = View.OnClickListener(this::saveMovie)
|
|
|
movieEditView.onSeekBarChangeListener = object : SeekBar.OnSeekBarChangeListener {
|
|
@@ -234,6 +235,10 @@ class MovieEditActivity : AppCompatActivity(), DialogInterface.OnDismissListener
|
|
|
musicSelectDialog.show(supportFragmentManager, MUSIC_SELECT_DIALOG_TAG)
|
|
|
}
|
|
|
|
|
|
+ private fun editMusic(view:View){
|
|
|
+ Log.d("Debug","edit music track $currentAudioPosition")
|
|
|
+ }
|
|
|
+
|
|
|
private fun deleteMusic(view: View) {
|
|
|
if (currentAudioPosition in 0 until musics.size) {
|
|
|
moviePlayer.init()
|