am c248a6cf: am d9074d1e: am c3cc344d: Merge "Release text when finishing StaticLayout.Builder" into mnc-dev
* commit 'c248a6cf3441e0dcb50f041e297a93116604990e': Release text when finishing StaticLayout.Builder
This commit is contained in:
@@ -112,6 +112,10 @@ public class StaticLayout extends Layout {
|
|||||||
// release any expensive state
|
// release any expensive state
|
||||||
/* package */ void finish() {
|
/* package */ void finish() {
|
||||||
nFinishBuilder(mNativePtr);
|
nFinishBuilder(mNativePtr);
|
||||||
|
mText = null;
|
||||||
|
mPaint = null;
|
||||||
|
mLeftIndents = null;
|
||||||
|
mRightIndents = null;
|
||||||
mMeasuredText.finish();
|
mMeasuredText.finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user