import net.ktnx.mobileledger.databinding.TemplateDetailsAccountBinding;
import net.ktnx.mobileledger.databinding.TemplateDetailsHeaderBinding;
import net.ktnx.mobileledger.db.AccountAutocompleteAdapter;
-import net.ktnx.mobileledger.db.TemplateBase;
import net.ktnx.mobileledger.model.Data;
import net.ktnx.mobileledger.model.TemplateDetailsItem;
import net.ktnx.mobileledger.ui.QRScanCapableFragment;
import org.jetbrains.annotations.NotNull;
import java.text.ParseException;
-import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
return differ.getCurrentList()
.size();
}
- public void setTemplateItems(List<TemplateBase> items) {
- ArrayList<TemplateDetailsItem> list = new ArrayList<>();
- for (TemplateBase p : items) {
- TemplateDetailsItem item = TemplateDetailsItem.fromRoomObject(p);
- list.add(item);
- }
- setItems(list);
- }
public void setItems(List<TemplateDetailsItem> items) {
differ.submitList(items);
}