.build();
}
}
- public abstract TemplateHeaderDAO getPatternDAO();
+ public abstract TemplateHeaderDAO getTemplateDAO();
public abstract TemplateAccountDAO getPatternAccountDAO();
return;
LiveData<List<TemplateHeader>> allPatterns = DB.get()
- .getPatternDAO()
+ .getTemplateDAO()
.getTemplates();
allPatterns.observe(getViewLifecycleOwner(), patternHeaders -> {
ArrayList<TemplateHeader> matchingPatterns = new ArrayList<>();
listAdapter.notifyItemChanged(0);
DB.get()
- .getPatternDAO()
+ .getTemplateDAO()
.getTemplateWithAccounts(patternHeader.getId())
.observe(getViewLifecycleOwner(), entry -> {
int rowIndex = 0;
}
DB db = DB.get();
- LiveData<TemplateWithAccounts> dbList = db.getPatternDAO()
+ LiveData<TemplateWithAccounts> dbList = db.getTemplateDAO()
.getTemplateWithAccounts(mPatternId);
Observer<TemplateWithAccounts> observer = new Observer<TemplateWithAccounts>() {
@Override
TemplateDetailsItem.Header modelHeader = list.get(0)
.asHeaderItem();
TemplateHeaderDAO headerDAO = DB.get()
- .getPatternDAO();
+ .getTemplateDAO();
TemplateHeader dbHeader = modelHeader.toDBO();
if (newPattern) {
dbHeader.setId(null);
b.templateList.setAdapter(modelAdapter);
TemplateHeaderDAO pDao = DB.get()
- .getPatternDAO();
+ .getTemplateDAO();
LiveData<List<TemplateHeader>> templates = pDao.getTemplates();
templates.observe(getViewLifecycleOwner(), modelAdapter::setTemplates);
LinearLayoutManager llm = new LinearLayoutManager(getContext());