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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -