Fix #471: Lift bottom action bars above system navigation bar (#484)

* Fix #471: lift bottom action bars above system navigation bar

Add navigationBarsPadding() to bottom bar Row/Column containers in
BuildApkScreen (both idle and building states), FileManagerScreen
selection action bar, and AppModifierScreen AppModifyBottomBar.

Pattern matches CreateAppBottomBar which already applied the correct
insets padding. This ensures AAB/Cancel/Build buttons, multi-select
action buttons, and clone/shortcut action buttons are not overlapped
by 3-button system navigation bar on devices that use it (gesture
nav devices remain unaffected as navigationBarsPadding returns 0).

Signed-off-by: shiaho <222622008+shiaho777@users.noreply.github.com>

* chore(gitignore): ignore .workbuddy/ local workspace directory

Add .workbuddy/ alongside the other IDE/agent tool directories
(.vscode/, .claude/, .zcode/) so local tool scratch data never shows
up as untracked files.

Signed-off-by: shiaho <222622008+shiaho777@users.noreply.github.com>

---------

Signed-off-by: shiaho <222622008+shiaho777@users.noreply.github.com>
Co-authored-by: shiaho <222622008+shiaho777@users.noreply.github.com>
This commit is contained in:
shiaho
2026-08-06 21:02:22 +08:00
committed by GitHub
parent 4740a36dbf
commit 9304bf6171
4 changed files with 8 additions and 39 deletions
+1
View File
@@ -15,6 +15,7 @@ build/
.vscode/
.claude/
.zcode/
.workbuddy/
local.properties
gradle/config.properties
gradle/gradle-daemon-jvm.properties
@@ -12,19 +12,7 @@ import androidx.compose.animation.shrinkVertically
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.rememberScrollState
@@ -1103,6 +1091,7 @@ private fun AppModifyBottomBar(
Column(
modifier = Modifier
.fillMaxWidth()
.navigationBarsPadding()
.padding(horizontal = 16.dp, vertical = 12.dp),
verticalArrangement = Arrangement.spacedBy(10.dp)
) {
@@ -10,20 +10,8 @@ import androidx.compose.animation.core.spring
import androidx.compose.animation.core.tween
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.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.verticalScroll
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
@@ -374,6 +362,7 @@ private fun BuildApkContent(
Row(
modifier = Modifier
.fillMaxWidth()
.navigationBarsPadding()
.padding(horizontal = 16.dp, vertical = 12.dp),
verticalAlignment = Alignment.CenterVertically
) {
@@ -450,6 +439,7 @@ private fun BuildApkContent(
Box(
modifier = Modifier
.fillMaxWidth()
.navigationBarsPadding()
.padding(vertical = 12.dp),
contentAlignment = Alignment.Center
) {
@@ -10,19 +10,7 @@ import androidx.compose.animation.shrinkVertically
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.rememberScrollState
@@ -344,6 +332,7 @@ fun FileManagerScreen(onBack: () -> Unit) {
Row(
modifier = Modifier
.fillMaxWidth()
.navigationBarsPadding()
.padding(horizontal = 16.dp, vertical = 10.dp),
horizontalArrangement = Arrangement.spacedBy(10.dp),
verticalAlignment = Alignment.CenterVertically