I have an ArrayList<Long>
object that i would like to retain on orientation change of my fragment. But the Bundle
class does not have a putLongArrayList()
method. I do see putParcelableArrayList()
, putIntegerArrayList()
and putStringArrayList()
.
Is there any reason why the Long
version of the method is not defined? Is there a simple workaround for this other than creating wrapper parcelable class for the Long
objects and then using putParcelableArrayList()
?