docs: document Android notification picker helpers · openclaw/openclaw@2ffeca1
steipete
·
2026-06-02
·
via Recent Commits to openclaw:main
File tree
apps/android/app/src/main/java/ai/openclaw/app/ui
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1253,6 +1253,7 @@ private fun cronJobStatus(job: GatewayCronJobSummary): ClawStatus {
|
1253 | 1253 | } |
1254 | 1254 | } |
1255 | 1255 | |
| 1256 | +/** Applies query/system visibility rules while always preserving selected packages. */ |
1256 | 1257 | internal fun filterNotificationAppsForPicker( |
1257 | 1258 | apps: List<InstalledApp>, |
1258 | 1259 | selectedPackages: Set<String>, |
@@ -1271,6 +1272,7 @@ internal fun filterNotificationAppsForPicker(
|
1271 | 1272 | } |
1272 | 1273 | } |
1273 | 1274 | |
| 1275 | +/** Summarizes allowlist/blocklist mode with an empty-state warning when needed. */ |
1274 | 1276 | private fun notificationPackageSelectionSummary( |
1275 | 1277 | mode: NotificationPackageFilterMode, |
1276 | 1278 | selectedCount: Int, |
@@ -1290,6 +1292,7 @@ private fun notificationPackageSelectionSummary(
|
1290 | 1292 | } |
1291 | 1293 | } |
1292 | 1294 | |
| 1295 | +/** Builds compact two-letter app badges from package-picker labels. */ |
1293 | 1296 | private fun notificationAppBadge(label: String): String { |
1294 | 1297 | val initials = |
1295 | 1298 | label |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。