FragmentTransactionExtended
FragmentTransactionExtended copied to clipboard
Tag support added to FragmentTransactionExtended class
There was no way to add tags to the fragment being placed in the container during a FragmentTransactionExtended transaction.
I created a new constructor that accepts a tag as a String and sets a member variable to it. In the original constructor, I set the member tag to null.
I changed the fragmentTransaction.add(containerId, fragment) method to fragmentTransaction.add(containerId, fragment, tag) This is flexible, as the fragmentTransaction.add(containerId, fragment) method is actually fragmentTransaction.add(containerId, fragment, null)