i trying remove item recyclerview , error. java.lang.illegalstateexception: cannot call method while recyclerview computing layout or scrolling i using notifydatasetchanged() . how can solve this? here adapter code public class listadapters extends recyclerview.adapter<listadapters.myviewholder> { public arraylist<string> tvdatalist; context c; int pos; listadapters.myviewholder myviewholder; private layoutinflater layoutinflater; int[] arr; public class myviewholder extends recyclerview.viewholder implements view.onclicklistener { public edittext edttxt; public checkbox cb; public myviewholder(view view) { super(view); edttxt = (edittext) view.findviewbyid(r.id.edttxt); cb = (checkbox) view.findviewbyid(r.id.cb); } @override public void onclick(view v) { } } public listadapters(context c, arraylist<string> tvdatali...
we're attempting use oracle aq build queueing system our app in .net 4.7. basically, our problem wrap dequeueing process in upper level transaction containing other instructions , able commit or rollback "manually" after executing queue.dequeue() instruction. so far, works enqueueing: using (var tr = con.begintransaction()) { try { enqmsg.senderid = new oracleaqagent("subscriber1"); enqmsg.payload = new oraclexmltype(con, new xdocument( new xelement("workflowexecution", new xelement("id", i), new xelement("workflowname", guid.newguid().tostring().substring(0, 8)), new xelement("requestsource", guid.newguid().tostring().substring(0, 6)))).tostring()); queue.enqueue(enqmsg); //other instructions here... tr.commit(); } catch (exception) { tr.rollback(); } } with same approach, tryi...
Comments
Post a Comment