deepseek-ai / deepseek-ai/DeepSeek-Coder
baru
- Dominant language
- Python
- Stars
- 24.3k
- Forks
- 2.9k
- PR merge metrics
- No merged PRs in 30d
Description
// /app/src/main/java/com/example/ui/screens/MainAppScreen.kt
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.compose.ui.viewinterop.AndroidView
@Composable
fun ArticleDetailOverlay(
article: Article,
onClose: () -> Unit,
onToggleBookmark: () -> Unit,
onDeleteArticle: (() -> Unit)? = null
) {
val context = LocalContext.current
var showDeleteConfirm by remember { mutableStateOf(false) }
// ... (Dialog konfirmasi hapus dan Bar navigasi detail atas)
// WebView di dalam Overlay Detail Artikel
val webUrl = if (article.link.isNotBlank()) article.link else "https://adakah.id/"
Column(modifier = Modifier.fillMaxSize().weight(1f)) {
// Banner Notifikasi Kunjungan Tercatat
Row(
modifier = Modifier
.fillMaxWidth()
.background(EmeraldSecondary.copy(alpha = 0.15f))
.padding(horizontal = 12.dp, vertical = 8.dp),
verticalAlignment = Alignment.CenterVertically
) {
Box(
modifier = Modifier
.size(8.dp)
.clip(CircleShape)
.background(EmeraldSecondary)
)
Spacer(modifier = Modifier.width(8.dp))
Text(
text = "Memuat halaman asli. Kunjungan Anda tercatat sebagai pembaca di website resmi.",
fontSize = 11.sp,
fontWeight = FontWeight.Medium,
color = EmeraldSecondary
)
}
// Komponen WebView Android terintegrasi di Compose
AndroidView(
factory = { context ->
WebView(context).apply {
webViewClient = WebViewClient() // Membuka link tetap di dalam aplikasi
settings.javaScriptEnabled = true
settings.domStorageEnabled = true
settings.loadWithOverviewMode = true
settings.useWideViewPort = true
loadUrl(webUrl)
}
},
modifier = Modifier.fillMaxSize(),
update = { webView ->
webView.loadUrl(webUrl)
}
)
}
}
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue points to /app/src/main/java/com/example/ui/screens/MainAppScreen.kt and the ArticleDetailOverlay composable, but it does not state what change is requested. Read that entry point and clarify the intended behavior and acceptance criteria before attempting work; the definition of done is not provided.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100