Skip to content

Commit

Permalink
Merge pull request #167 from boostcampwm2023/android/feature/6
Browse files Browse the repository at this point in the history
최근 재생한 노래 클릭시, Home -> Player 화면 이동
  • Loading branch information
2taezeat authored Nov 23, 2023
2 parents 2b3b6da + 4af85f3 commit e8828ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(R.layout.fragment_home) {
.build()
findNavController().navigate(request)
}

binding.ivRecentlyPlayedSong.setOnClickListener {
val request = NavDeepLinkRequest.Builder
.fromUri("android-app://com.ohdodok.catchytape/player_fragment".toUri())
.build()

findNavController().navigate(request)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
android:id="@+id/player_fragment"
android:name="com.ohdodok.catchytape.feature.player.PlayerFragment"
android:label="player"
tools:layout="@layout/fragment_player" />
tools:layout="@layout/fragment_player">

<deepLink app:uri="android-app://com.ohdodok.catchytape/player_fragment" />


</fragment>

</navigation>

0 comments on commit e8828ac

Please sign in to comment.