Fixed
Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit e23260c7ff3cc010488be6ecda2f1a39e64863ed
Author: Jeremy Woods <jbwoods@google.com>
Date: Thu Feb 25 12:22:20 2021
Remove extra end brace from toString()
The fragment toSting() method added an unneeded closing braces at the
end so we should remove it. Moved ending parenthesis of the mWho to
cover the entire fragment identity.
Also added "tag=" to the fragment tag.
Example toString:
MyFragment{2738801} (275d67bc-b525-4373-bbe7-349c06a67650 id=0x7f0900a3 tag=fragment1)
RelNote: "There is no longer an extra `}` at the end of the fragment
toString()"
Test: all tests pass
Bug: 177761088
Change-Id: I547053a275afdde0720a63370629af49c1b8cd2e
M fragment/fragment/src/main/java/androidx/fragment/app/Fragment.java
https://android-review.googlesource.com/1607509
Branch: androidx-main
commit e23260c7ff3cc010488be6ecda2f1a39e64863ed
Author: Jeremy Woods <jbwoods@google.com>
Date: Thu Feb 25 12:22:20 2021
Remove extra end brace from toString()
The fragment toSting() method added an unneeded closing braces at the
end so we should remove it. Moved ending parenthesis of the mWho to
cover the entire fragment identity.
Also added "tag=" to the fragment tag.
Example toString:
MyFragment{2738801} (275d67bc-b525-4373-bbe7-349c06a67650 id=0x7f0900a3 tag=fragment1)
RelNote: "There is no longer an extra `}` at the end of the fragment
toString()"
Test: all tests pass
Bug: 177761088
Change-Id: I547053a275afdde0720a63370629af49c1b8cd2e
M fragment/fragment/src/main/java/androidx/fragment/app/Fragment.java
jb...@google.com <jb...@google.com> #3
This has been fixed internally and will be available in the Fragment 1.3.1
release.
Description
Version used:
Devices/Android versions reproduced on:
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
When calling toString on a androidx.fragment.app.Fragment a string is produced with an extra '}'
The source code calls 'sb.append("{");' once and 'sb.append("})";' twice.
see the example output below.
onAttachFragment: TicketListFragment{2738801} (275d67bc-b525-4373-bbe7-349c06a67650) id=0x7f0900a3 List_Fragment}