cgeo/c-geo-opensource — pull request #1265 by campbeb (2012-03-11 09:52:26+00:00)
Title: cacheChangeNotificationHandler must be set each time cache is created

`notifyDataSetChanged` gets a new `cache` which sets the change handler back to null. The change handler must be set when the cache object is created.

This fixes the following bug:
- Open a cache from map or list
- Move to page other than Details (such as description)
- Offline log the cache
- Go back to map or list. Cache doesn't update to show the offline log.

This is because `notifyDataSetChanged` was called at some point and the change handler that was set when cache was loaded is gone.