Fix ActivityLeak through text reference

Bug: 296064689
Test: atest CtsTextTestCases
Test: atest CtsWidgetTestCases
Change-Id: I038c28819d6aaf8518c28fb0ab223925357d4d0a
2 files changed