android - Why is ModelFragment.deliverModel() synchronized in CommonsWare 4.7 turorial #12? -


i'm working way though version 4.7 of commonsware master book. i'm tutorial #12. question relates delivermodel() method in modelfragment. why synchronized?

my confusion comes understanding that method (delivermodel()) should called ui thread. it's called fragment onactivitycreated() , asynctask onpostexecute().

thank you, lee

why synchronized?

for no reason, apparently. sure had reason once upon time, correct -- invoked on main application thread @ present. remove synchronized keyword sometime in future.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -