diff --git a/app/src/main/java/org/b3log/siyuan/ld246/Home.kt b/app/src/main/java/org/b3log/siyuan/ld246/Home.kt index 98d54e35..cd25e172 100644 --- a/app/src/main/java/org/b3log/siyuan/ld246/Home.kt +++ b/app/src/main/java/org/b3log/siyuan/ld246/Home.kt @@ -20,7 +20,6 @@ import androidx.activity.OnBackPressedCallback import androidx.activity.compose.setContent import androidx.compose.foundation.background import androidx.compose.foundation.clickable -import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row @@ -724,7 +723,7 @@ class HomeActivity : ComponentActivity() { modifier = Modifier.padding(bottom = 70.dp) // 避免被底栏遮住 ) { item { - v!!.forEach { notification -> + v?.forEach { notification -> NotificationCard(notification) } } @@ -1038,7 +1037,6 @@ class HomeActivity : ComponentActivity() { val webView = dialog.getCustomView()?.findViewById(R.id.webView) Log.w(fullScreenDialog.toString(), webView.toString()) webView?.loadUrl(url) - dialog.refreshUI() } } }