Skip to content

Commit

Permalink
Fix bug where filters did not work in uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
christarazi committed Dec 19, 2016
1 parent 0869a69 commit 7ceae4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
applicationId "com.chris.randomrestaurantgenerator"
minSdkVersion 15
targetSdkVersion 25
versionCode 7
versionCode 8
versionName "1.3"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ private boolean queryYelp(String lat, String lon, String input,

// Check if user wants to filter by categories.
if (filter.length() != 0)
builder.append("&categories=").append(filter);
builder.append("&categories=").append(filter.toLowerCase());

// Check if the user wants to filter by price range.
StringBuilder priceBuilder = new StringBuilder("");
Expand Down

0 comments on commit 7ceae4b

Please sign in to comment.