Skip to content

Commit

Permalink
Ignore case when looking up decks by name
Browse files Browse the repository at this point in the history
  • Loading branch information
timrae committed Mar 28, 2016
1 parent 3716401 commit 21053c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/ichi2/apisample/AnkiDroidHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public Long findDeckIdByName(String deckName) {
private Long getDeckId(String deckName) {
Map<Long, String> deckList = mApi.getDeckList();
for (Map.Entry<Long, String> entry : deckList.entrySet()) {
if (entry.getValue().equals(deckName)) {
if (entry.getValue().equalsIgnoreCase(deckName)) {
return entry.getKey();
}
}
Expand Down

0 comments on commit 21053c6

Please sign in to comment.