Make certificate list scrollable (#41891)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> Resolves #39014 - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] QA'd all new/changed functionality manually <img width="1080" height="2400" alt="image" src="https://github.com/user-attachments/assets/2ab7c440-9e0b-4676-b024-a8e2fbe934f1" /> <img width="1080" height="2400" alt="image" src="https://github.com/user-attachments/assets/1b3284b3-43f2-4a0f-9609-dc20f6745518" />
This commit is contained in:
@@ -146,15 +146,17 @@ fun MainScreen(onNavigateToDebug: () -> Unit) {
|
||||
}
|
||||
}
|
||||
HorizontalDivider()
|
||||
CertificateList(certificates = installedCerts)
|
||||
AppVersion {
|
||||
if (++versionClicks >= CLICKS_TO_DEBUG) {
|
||||
onNavigateToDebug()
|
||||
} else if (versionClicks == 1) {
|
||||
val clipboard = context.getSystemService(ClipboardManager::class.java)
|
||||
?: error("ClipboardManager not available")
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText("", "Fleet Android Agent: ${BuildConfig.VERSION_NAME}"))
|
||||
Toast.makeText(context, "Fleet Agent version copied", Toast.LENGTH_SHORT).show()
|
||||
Column(Modifier.verticalScroll(rememberScrollState())) {
|
||||
CertificateList(certificates = installedCerts)
|
||||
AppVersion {
|
||||
if (++versionClicks >= CLICKS_TO_DEBUG) {
|
||||
onNavigateToDebug()
|
||||
} else if (versionClicks == 1) {
|
||||
val clipboard = context.getSystemService(ClipboardManager::class.java)
|
||||
?: error("ClipboardManager not available")
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText("", "Fleet Android Agent: ${BuildConfig.VERSION_NAME}"))
|
||||
Toast.makeText(context, "Fleet Agent version copied", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user