From aaa736e0e23955362680778957c239d3b2d73d7d Mon Sep 17 00:00:00 2001 From: hyowon0204 Date: Tue, 21 May 2024 19:30:35 +0900 Subject: [PATCH] =?UTF-8?q?[kara/#28]=20fix=20::=20play=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=ED=81=B4=EB=A6=AD=20=EC=8B=9C=20miniplay=20?= =?UTF-8?q?=EB=8F=99=EA=B8=B0=ED=99=94=20=EC=84=B1=EA=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/src/main/java/com/example/myfirstapp/AlbumRVAdapter.kt | 2 +- .../app/src/main/java/com/example/myfirstapp/MainActivity.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/UMC_6th/app/src/main/java/com/example/myfirstapp/AlbumRVAdapter.kt b/UMC_6th/app/src/main/java/com/example/myfirstapp/AlbumRVAdapter.kt index 0e0e32a..18bd86f 100644 --- a/UMC_6th/app/src/main/java/com/example/myfirstapp/AlbumRVAdapter.kt +++ b/UMC_6th/app/src/main/java/com/example/myfirstapp/AlbumRVAdapter.kt @@ -39,7 +39,7 @@ class AlbumRVAdapter(private val albumlist: ArrayList): RecyclerView.Adap } // holder.binding.itemAlbumTitleTv.setOnClickListener { mItemClickListener.onRemoveAlbum(position) holder.binding.itemAlbumPlayImgIv.setOnClickListener { - myItemClickListener.onItemClick(albumlist[position]) + myItemClickListener.onPlayAlbum(albumlist[position]) } } diff --git a/UMC_6th/app/src/main/java/com/example/myfirstapp/MainActivity.kt b/UMC_6th/app/src/main/java/com/example/myfirstapp/MainActivity.kt index e8d3293..6b2a110 100644 --- a/UMC_6th/app/src/main/java/com/example/myfirstapp/MainActivity.kt +++ b/UMC_6th/app/src/main/java/com/example/myfirstapp/MainActivity.kt @@ -15,6 +15,7 @@ class MainActivity : AppCompatActivity() { lateinit var binding : ActivityMainBinding lateinit var activityResultLauncher: ActivityResultLauncher + private var song:Song = Song() private var gson: Gson = Gson() @@ -26,6 +27,7 @@ class MainActivity : AppCompatActivity() { setBottomNavigationView() + // MainActivity에서 SongActivity로 데이터 값 넘기기 위한 변수명 지정 // val song = Song(binding.mainPlayTitleTv.text.toString(), binding.mainPlaySingerTv.text.toString(),0,60,false,"music_lilac")