Generally a CursorLoader monitors for changes to the underlying database,
and delivers a new Cursor to you when the data changes. So you could
certainly be putting new objects in mPeople if the contacts change.
On Sun, Nov 6, 2011 at 11:53 AM, Jay wrote:
> I really don't do much else with mPeop
I really don't do much else with mPeople, though I can think of two
other things it might be. As I said, mPeople does supply a
ListAdapter. Is it possible that is doing some behind the scenes
cloning? Perhaps more likely, mPeople is populated by a CursorLoader
attached to the Contacts content provi
Well as far as I know ArrayList won't just do this behind your back. I
would assume there is something else your app is doing that isn't shown
here. Are you sure you never change what is in mPeople that could cause a
new instance of an object to be created?
On Sat, Nov 5, 2011 at 10:16 PM, Jay
Thank you for the reply. Is there some other mechanism by which the
objects in my array might be replaced with objects with the same type
and contents but different identities (i.e. don't compare as equal
using the default implementation)? Because that seems to be what is
happening (intermittantly)
4 matches
Mail list logo