Make pager adapter cursor access safer

Monkeys seem to occasionally trigger pager layouts when the
cursor is transitioning. Fix this by patching up one case
where notifications didn't happen (onLoadFinished), and by
removing pager adapter's stored cursor reference in favor of
getting it each time from the controller. Now that different
folders have different cursor instances, the stored reference
is no longer a good idea to keep.

Also remove a redundant refreshAdapter() call in AAC. sync()
always triggers dataChanged, so a manual refresh is unnecessary.

Bug: 6384749
Change-Id: I3d7b0f41e9397c62fd544f5e903bd37cf319ccaf
2 files changed