[go: up one dir, main page]

Skip to content

Commit

Permalink
Using the venueInfo.name instead of the Venue's name (key code)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose J Varo committed Jun 17, 2019
1 parent 48af175 commit 770216f
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.mapsindoors.mapssdk.LocationPropertyNames;
import com.mapsindoors.mapssdk.MapsIndoors;
import com.mapsindoors.mapssdk.SphericalUtil;
import com.mapsindoors.mapssdk.VenueInfo;
import com.mapsindoors.mapssdk.dbglog;
import com.mapsindoors.mapssdk.Building;
import com.mapsindoors.mapssdk.BuildingCollection;
Expand Down Expand Up @@ -802,7 +803,14 @@ public static String composeLocationInfoString( Context ctx, Location location,

Venue venue = venueCollection.getVenue( venueCodeName );
if( venue != null ) {
venueName = venue.getName();

final VenueInfo venueInfo = venue.getVenueInfo();

if(venueInfo!=null)
{
venueName = venueInfo.getName();
}

if( TextUtils.isEmpty( venueName ) ) {
venueName = null;
}
Expand Down Expand Up @@ -902,7 +910,14 @@ public static String composeLocationInfoString( Context ctx, Location location,

Venue venue = venueCollection.getVenue( venueCodeName );
if( venue != null ) {
venueName = venue.getName();

final VenueInfo venueInfo = venue.getVenueInfo();

if(venueInfo!=null)
{
venueName = venueInfo.getName();
}

if( TextUtils.isEmpty( venueName ) ) {
venueName = null;
}
Expand Down

0 comments on commit 770216f

Please sign in to comment.