diff --git a/presentation/src/main/java/com/kkkk/presentation/main/rhythm/RhythmFragment.kt b/presentation/src/main/java/com/kkkk/presentation/main/rhythm/RhythmFragment.kt index c9df283..0235579 100644 --- a/presentation/src/main/java/com/kkkk/presentation/main/rhythm/RhythmFragment.kt +++ b/presentation/src/main/java/com/kkkk/presentation/main/rhythm/RhythmFragment.kt @@ -60,7 +60,7 @@ class RhythmFragment : BaseFragment(R.layout.fragment_rhy initChangeLevelBtnListener() initPlayBtnListener() initStopBtnListener() - sendBpmToWearable() + initWearableSyncBtnListener() observeRhythmLevel() observeRhythmUrlState() observeDownloadState() @@ -107,8 +107,10 @@ class RhythmFragment : BaseFragment(R.layout.fragment_rhy } } - private fun sendBpmToWearable() { - wearableDataManager.sendIntToWearable(PATH_BPM, KEY_BPM, viewModel.getBpmFromDataStore()) + private fun initWearableSyncBtnListener() { + binding.tvRhythmTitle.setOnSingleClickListener { + wearableDataManager.sendIntToWearable(PATH_BPM, KEY_BPM, viewModel.getBpmFromDataStore()) + } } private fun observeRhythmLevel() {