Skip to content

Commit

Permalink
[android] mapbox#2919 - Trimming whitespace during setAccessToken()
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege committed Nov 5, 2015
1 parent 37582b6 commit cf602cb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,9 @@ private void validateAccessToken(String accessToken) {
@UiThread
public void setAccessToken(@NonNull String accessToken) {
// validateAccessToken does the null check
if (!TextUtils.isEmpty(accessToken)) {
accessToken = accessToken.trim();
}
validateAccessToken(accessToken);
mNativeMapView.setAccessToken(accessToken);
}
Expand Down

0 comments on commit cf602cb

Please sign in to comment.