惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
L
LangChain Blog
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园_首页
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
美团技术团队
V
V2EX

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(android): hide nav under command palette · openclaw/o...
obviyus · 2026-06-03 · via Recent Commits to openclaw:main

File tree

    • main/java/ai/openclaw/app/ui

    • test/java/ai/openclaw/app/ui

Original file line numberDiff line numberDiff line change

@@ -103,6 +103,8 @@ private val shellNavTabs = listOf(Tab.Overview, Tab.Chat, Tab.Voice, Tab.Setting

103103

private val shellContentInsets: WindowInsets

104104

@Composable get() = WindowInsets.safeDrawing.only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal)

105105
106+

internal fun shellBottomNavVisible(keyboardVisible: Boolean, commandOpen: Boolean): Boolean = !keyboardVisible && !commandOpen

107+
106108

/** Main post-onboarding shell that owns top-level Android navigation state. */

107109

@Composable

108110

fun ShellScreen(

@@ -150,13 +152,14 @@ fun ShellScreen(

150152
151153

val density = LocalDensity.current

152154

val keyboardVisible = WindowInsets.ime.getBottom(density) > 0

155+

val showBottomNav = shellBottomNavVisible(keyboardVisible = keyboardVisible, commandOpen = commandOpen)

153156
154157

Scaffold(

155158

modifier = modifier.fillMaxSize(),

156159

containerColor = ClawTheme.colors.canvas,

157160

contentWindowInsets = WindowInsets(0, 0, 0, 0),

158161

bottomBar = {

159-

if (!keyboardVisible) {

162+

if (showBottomNav) {

160163

ClawBottomNav(

161164

items = shellNavTabs.map { ClawNavItem(key = it.key, label = it.label, icon = it.icon) },

162165

selectedKey = if (activeTab in shellNavTabs) activeTab.key else Tab.Overview.key,

Original file line numberDiff line numberDiff line change

@@ -5,9 +5,18 @@ import ai.openclaw.app.GatewayChannelsSummary

55

import ai.openclaw.app.GatewayNodesDevicesSummary

66

import ai.openclaw.app.GatewayPendingDeviceSummary

77

import org.junit.Assert.assertEquals

8+

import org.junit.Assert.assertFalse

9+

import org.junit.Assert.assertTrue

810

import org.junit.Test

911
1012

class ShellScreenLogicTest {

13+

@Test

14+

fun bottomNavHidesForKeyboardAndCommandPalette() {

15+

assertTrue(shellBottomNavVisible(keyboardVisible = false, commandOpen = false))

16+

assertFalse(shellBottomNavVisible(keyboardVisible = true, commandOpen = false))

17+

assertFalse(shellBottomNavVisible(keyboardVisible = false, commandOpen = true))

18+

}

19+
1120

@Test

1221

fun homeAttentionRowsSurfaceGatewayWhenDisconnected() {

1322

val rows =