commit | d1dd4cdf2c32a6e49c43858150b51cebf07765ea | [log] [tgz] |
---|---|---|
author | ykhung <ykhung@google.com> | Wed Oct 06 10:35:50 2021 +0800 |
committer | ykhung <ykhung@google.com> | Wed Oct 06 10:35:50 2021 +0800 |
tree | 092025e22c74dbefc00f114297acdbd7710c30af | |
parent | 33612098b37f9c061dd03d4752f4421bce88aa76 [diff] |
Replace the cached MotionEvent with getX() value to improve GC state avoid to cache the whole MotionEvent, since it will clone the whole instance fields again to cause GC triggering, since we only need the getX() value in the MotionEvent, rather than the whole data Bug: 195306545 Test: make SettingsRoboTests Change-Id: Ic3840b0a4eb6587ec229ba3de2c62ec868d1a535