mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
NF: same for getDeckName (never called actually)
This commit is contained in:
parent
3e4824db5f
commit
5e7768fe1d
@ -596,16 +596,9 @@ public final class AddContentApi {
|
||||
* @param did ID of deck
|
||||
* @return the name of the deck, or null if no deck was found
|
||||
*/
|
||||
public String getDeckName(Long did) {
|
||||
public String getDeckName(long did) {
|
||||
Map<Long, String> deckList = getDeckList();
|
||||
if (did != null && did >= 0 && deckList != null) {
|
||||
for (Map.Entry<Long, String> entry : deckList.entrySet()) {
|
||||
if (entry.getKey().equals(did)) {
|
||||
return entry.getValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return deckList.get(did);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user