summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author George Mount <mount@google.com> 2016-10-31 14:04:13 -0700
committer George Mount <mount@google.com> 2016-11-15 15:00:53 -0800
commitf0b46b9540b48448c1f1fbe55ca2930770bd72e2 (patch)
tree368cd44ba9c637fa7d87f39f8a2551e9b573f9f8 /libs/hwui/ProgramCache.cpp
parent5ddd7172b1d60f289ba9fc07cfad0e660b341ee5 (diff)
Use safe access to OnPreDrawListener.
Bug 32472451 It is important to remove an OnPreDrawListener from the correct ViewTreeObserver. When a View is added to the view hierarchy, the initial ViewTreeObserver is not active. The listener must then be removed from the current OnPreDrawListener. When a View has been removed from the hierarchy, it is important to remove the listener from the orignal ViewTreeObserver. Test: cts-tradefed run singleCommand cts -d --skip-preconditions --skip-connectivity-check -m CtsUsageStatsTestCases Test: cts-tradefed run singleCommand cts -d --skip-preconditions --skip-connectivity-check -m CtsFragmentTestCases Change-Id: I735f71d2d9c84e86ef846aab0088a8651300fbe8
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions