FragmentTransactionExtended icon indicating copy to clipboard operation
FragmentTransactionExtended copied to clipboard

Tag support added to FragmentTransactionExtended class

Open brandonbryan12 opened this issue 8 years ago • 0 comments

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)

brandonbryan12 avatar Mar 13 '16 23:03 brandonbryan12