diff --git a/app/src/main/kotlin/bums/lunatic/launcher/helpers/ForeGroundService.kt b/app/src/main/kotlin/bums/lunatic/launcher/helpers/ForeGroundService.kt index 9911aee4..603d45a5 100644 --- a/app/src/main/kotlin/bums/lunatic/launcher/helpers/ForeGroundService.kt +++ b/app/src/main/kotlin/bums/lunatic/launcher/helpers/ForeGroundService.kt @@ -594,9 +594,9 @@ class ForeGroundService : Service() { val majorClass = device?.bluetoothClass?.majorDeviceClass if (majorClass == BluetoothClass.Device.Major.AUDIO_VIDEO) { Blog.LOGE("Audio Bluetooth Connected: ${device?.name ?: "Unknown"}") - if ("BUMz pod".equals(device?.name)) { - launchAppleMusic(context) - } +// if ("BUMz pod".equals(device?.name)) { +// launchAppleMusic(context) +// } } } diff --git a/app/src/main/kotlin/bums/lunatic/launcher/home/GeckoWeb.kt b/app/src/main/kotlin/bums/lunatic/launcher/home/GeckoWeb.kt index 6ba809da..58d303fb 100644 --- a/app/src/main/kotlin/bums/lunatic/launcher/home/GeckoWeb.kt +++ b/app/src/main/kotlin/bums/lunatic/launcher/home/GeckoWeb.kt @@ -260,11 +260,13 @@ open class GeckoWeb @JvmOverloads constructor( return } val cleanUrl = cleanYoutubeUrl(firstUrl) // ← 추가! - - decoViews.firstOrNull { it.id == R.id.btn_dl_video }?.let { - it.setOnClickListener {} - it.visibility = GONE + CoroutineScope(Dispatchers.Main).launch { + decoViews.firstOrNull { it.id == R.id.btn_dl_video }?.let { + it.setOnClickListener {} + it.visibility = GONE + } } + checkIfDownloadableJob?.cancelAndJoin() checkIfDownloadableJob = CoroutineScope(Dispatchers.IO).launch { try {