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
Post a Comment