tripkit-android / com.skedgo.tripkit.ui.map.home / StopLoaderArgs / getCellIdsForLoading

getCellIdsForLoading

@NonNull static fun getCellIdsForLoading(@NonNull cellIds:MutableList<String!>, @NonNull region:Region):ArrayList<String!>

Defines proper cell ids so that the loader can load up stops that should be visible at corresponding level.

If given cell ids are for the regional level, just return themselves. Why? Because we expect that only parent stops are visible at this level. However, if they are for the local level, should plus the cell ids for the regional level. Why? Because we expect both parent stops and non-parent stops are visible at this level.