IMO your code is far more complex than it needs to...
# codereview
a
IMO your code is far more complex than it needs to be (e.g. temporarily storing data inside the class
tempAdIds
,
currentAdId
, ...) which can lead to nasty race conditions/other kind of bugs later on
a
Thanks to pointing this out. I have to store
tempAdIds
somewhere to attach to selected images.