forked from MapComplete/MapComplete
Android: add inset spacers for android
This commit is contained in:
parent
381ac4a2f2
commit
877bdfae95
19 changed files with 84 additions and 47 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue