Skip to content

Commit 6fc758d

Browse files
committed
no longer necessary
1 parent b10c7a9 commit 6fc758d

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

libandroid/app/src/main/java/com/mapbox/services/android/testapp/directions/DirectionsV5Activity.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,12 @@ private void getRoute(Position origin, Position destination) throws ServicesExce
109109
positions.add(origin);
110110
positions.add(destination);
111111

112-
MapboxDirections.Builder builder = new MapboxDirections.Builder()
112+
MapboxDirections client = new MapboxDirections.Builder()
113113
.setAccessToken(Utils.getMapboxAccessToken(this))
114114
.setCoordinates(positions)
115115
.setProfile(DirectionsCriteria.PROFILE_DRIVING)
116-
.setSteps(true);
117-
118-
// Check for a custom user
119-
int v5MapboxUser = getResources().getIdentifier("v5_mapbox_user", "string", getPackageName());
120-
if (!TextUtils.isEmpty(getString(v5MapboxUser))) {
121-
Log.d(LOG_TAG, "Custom user set.");
122-
builder.setUser(getString(v5MapboxUser));
123-
}
124-
125-
MapboxDirections client = builder.build();
116+
.setSteps(true)
117+
.build();
126118

127119
/*
128120
* Note that we also support RxJava + RxAndroid to consume our APIs. For example, the

0 commit comments

Comments
 (0)