Realized that arrays are passed as copies, not references, so I adjusted the image fetcher accordingly, but it still re-downloads the bigger image every time instead of fetching it from the cache. Not sure why. Perhaps I set up my singleton incorrectly?
Merge remote-tracking branch 'origin/master'
Realized that arrays are passed as copies, not references, so I adjusted the image fetcher accordingly, but it still re-downloads the bigger image every time instead of fetching it from the cache. Not sure why. I added a println and it says that the image array length is 0!!! What on earth? Hmmm. I'm thinking that perhaps I set up my singleton incorrectly?