mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 12:02:16 +02:00
Small bug fix to prevent reloading
This commit is contained in:
parent
b8712b6144
commit
c9f6de1abc
@ -101,7 +101,7 @@ public class Model {
|
||||
protected static Model getModel(long identifier, boolean isModelId) {
|
||||
if (false == isModelId) {
|
||||
//check whether the identifier is in the cardModelsMap
|
||||
if (null == currentModel || currentModel.cardModelsMap.containsKey(identifier)) {
|
||||
if (null == currentModel || false == currentModel.cardModelsMap.containsKey(identifier)) {
|
||||
//get the modelId
|
||||
long myModelId = CardModel.modelIdFromDB(identifier);
|
||||
//get the model
|
||||
|
Loading…
Reference in New Issue
Block a user