Skip to content

Commit

Permalink
fix: fixed for clear selected sound which choose new sound
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkipastel committed Aug 1, 2021
1 parent 458a1ed commit 4e6a315
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ class ChooseSoundBottomSheet: BottomSheetDialogFragment(), ChooseSoundListener {
this
)

padData?.let { padData ->
currentChoosePosition = soundList?.indexOf(padData.sound) ?: -1
}


binding.recyclerView.apply {
layoutManager = LinearLayoutManager(requireContext())
adapter = soundListAdapter
Expand Down

0 comments on commit 4e6a315

Please sign in to comment.