diff --git a/main_test.go b/main_test.go index 18dcbaf..0232c3a 100644 --- a/main_test.go +++ b/main_test.go @@ -887,6 +887,20 @@ func TestUIPhoneBackReturnsFromSubscreenToEntries(t *testing.T) { } } +func TestUIPhoneBackClosesSettingsDialog(t *testing.T) { + t.Parallel() + + u := newUIWithModel("phone", vault.Model{}) + u.securityDialogOpen = true + + if !u.handlePhoneBack() { + t.Fatal("handlePhoneBack() = false, want true for open settings dialog") + } + if u.securityDialogOpen { + t.Fatal("securityDialogOpen = true after back, want false") + } +} + func TestUISecurityDialogContentDoesNotPanicWithSmallViewport(t *testing.T) { t.Parallel() diff --git a/third_party/gioui-cmd/gogio/androidbuild.go b/third_party/gioui-cmd/gogio/androidbuild.go index a26c7b1..75c8e19 100644 --- a/third_party/gioui-cmd/gogio/androidbuild.go +++ b/third_party/gioui-cmd/gogio/androidbuild.go @@ -471,7 +471,7 @@ func exeAndroid(tmpDir string, tools *androidTools, bi *buildInfo, extraJars, pe {{range .Permissions}} {{end}}{{range .Features}} -{{end}}{{.ManifestSnip}} +{{end}}{{.ManifestSnip}} {{.AppSnip}}