You are correct that this is a bug in the demo app, and ArrayPagerAdapter
could use some defensive programming here to detect this case and raise an exception. I will work on fixing both. The PageDescriptor
needs a unique tag, and my current demo app algorithm won't guarantee that, as you discovered. I have filed an issue for this.
Off the top of my head, a UUID should be OK, though I'll probably just use a monotonically-increasing integer counter.
Thanks for pointing this out!