File tree 2 files changed +1
-5
lines changed
toolkit/indoors/src/main/java/com/arcgismaps/toolkit/indoors
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,6 @@ public fun FloorFilter(
144
144
// get the selected level ID
145
145
val selectedLevelID = floorFilterState.onLevelChanged.collectAsStateWithLifecycle().value?.id
146
146
147
- // get the selected facility if the level was set programmatically
148
- if (selectedFacility == null ) {
149
- selectedFacility = floorFilterState.getSelectedFacility()
150
- }
151
-
152
147
// if no facility is selected, only display site-facility selector button
153
148
if (selectedFacility == null ) {
154
149
SiteFacilityButton (
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ private class FloorFilterStateImpl(
199
199
}
200
200
filterMap()
201
201
}
202
+ _onFacilityChanged .value = getSelectedFacility()
202
203
_onLevelChanged .value = getSelectedLevel()
203
204
getSelectedLevel()?.let {
204
205
onSelectionChangedListener(
You can’t perform that action at this time.
0 commit comments