修正动态页面错误

This commit is contained in:
2024-10-27 11:31:27 +08:00
parent be18a60b2b
commit 5b3d663a73
5 changed files with 267 additions and 66 deletions

View File

@@ -48,7 +48,6 @@ class MainActivity : ComponentActivity() {
private lateinit var analytics: FirebaseAnalytics
private val scope = CoroutineScope(Dispatchers.Main)
val context = this
private val apkInstallReceiver = ApkInstallReceiver()
// 请求通知权限
private val requestPermissionLauncher = registerForActivityResult(
@@ -184,11 +183,6 @@ class MainActivity : ComponentActivity() {
}
}
override fun onDestroy() {
super.onDestroy()
// 取消注册广播接收器
unregisterReceiver(apkInstallReceiver)
}
/**
* 请求通知权限