package com.github.kr328.clash import android.content.Intent import android.net.Uri import com.github.kr328.clash.design.ApkBrokenDesign import kotlinx.coroutines.isActive class ApkBrokenActivity : BaseActivity() { override suspend fun main() { val design = ApkBrokenDesign(this) setContentDesign(design) while (isActive) { val req = design.requests.receive() startActivity(Intent(Intent.ACTION_VIEW).setData(Uri.parse(req.url))) } } }