I need to swap two adapters inside the ConcatAdapter but the list of adapters that is returned by getAdapters()
is immutable and won't let me use the java.util.Collections
utility.
So far what I've tried was to turn that list into a mutable list, swap the items and set the list back but it's ugly to look at since I'm doing this inside the TouchHelper's callback.
Would copying the class from the source and make that list mutable instead work? Are there any better solutions?