Android: add inset spacers for android

This commit is contained in:
Pieter Vander Vennet 2025-07-18 14:15:37 +02:00
parent 381ac4a2f2
commit 877bdfae95
19 changed files with 84 additions and 47 deletions

View file

@ -36,7 +36,7 @@ export default class SearchState {
constructor(state: ThemeViewState) {
this.state = state
this.showSearchDrawer = state.guistate.pageStates.search
this.searchTerm = QueryParameters.GetQueryParameter("q", "", "The term in the search field")
this.locationSearchers = [
@ -112,8 +112,6 @@ export default class SearchState {
)
this.locationResults = new GeocodingFeatureSource(this.suggestions.stabilized(250))
this.showSearchDrawer = new UIEventSource(false)
this.searchIsFocused.addCallbackAndRunD((sugg) => {
if (sugg) {
this.showSearchDrawer.set(true)

View file

@ -113,6 +113,9 @@ export class AndroidPolyfill {
DatabridgePluginSingleton.request<{ top: number, bottom: number }>({
key: "insets",
}).then((result) => {
if(!result){
return
}
let v = result.value
if(typeof v === "string"){
v = JSON.parse(v)