Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c560af88 authored by Johannes Carlsson's avatar Johannes Carlsson Committed by Steve Kondik
Browse files

Fix memory leak after TextView.setText

When TextView.setText was called on a TextView that the user
previously touched the mInsertionPointCursorController and
mSelectionModifierCursorController was set to null without first
calling ViewTreeObserver.removeOnTouchModeChangeListener. This caused
the ViewTreeObserver.mOnTouchModeChangeListeners to grow when the
user pressed the updated TextView. In some cases this also lead to a
larger memory leak where the TextView held a reference to a
LinearLayout through mParent.

Change-Id: I8c6042706f259c86e468f828652dc769c83d967c
parent c1ef69cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment