From 79b67dbcb52f9d85daa72244ae54eb0bbf22c5c2 Mon Sep 17 00:00:00 2001 From: Sangho Kim Date: Wed, 28 Aug 2024 21:15:27 +0900 Subject: [PATCH] =?UTF-8?q?[FIX/#46]=20=EB=8F=99=EA=B8=B0=ED=99=94=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kkkk/presentation/main/rhythm/RhythmFragment.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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() {