Skip to content

Commit d8f2096

Browse files
author
fuzzagrosner
committed
fix load from cursor method missing
1 parent 7ebeb88 commit d8f2096

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dbflow-processor/src/main/java/com/raizlabs/android/dbflow/processor/definition/method/LoadFromCursorMethod.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public MethodSpec getMethodSpec() {
6363
methodBuilder.addCode(codeBuilder.build());
6464
}
6565

66+
if (((TableDefinition) baseTableDefinition).implementsLoadFromCursorListener) {
67+
methodBuilder.addStatement("$L.onLoadFromCursor($L)", ModelUtils.getVariable(isModelContainerAdapter), LoadFromCursorMethod.PARAM_CURSOR);
68+
}
69+
6670
return methodBuilder.build();
6771
}
6872
}

0 commit comments

Comments
 (0)