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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -