Merge "Remove tracking of all drawables in ViewOverlay.clear()" into nyc-dev

This commit is contained in:
Kirill Grouchnikov
2016-03-15 16:25:48 +00:00
committed by Android (Google) Code Review

View File

@@ -216,6 +216,9 @@ public class ViewOverlay {
public void clear() {
removeAllViews();
if (mDrawables != null) {
for (Drawable drawable : mDrawables) {
drawable.setCallback(null);
}
mDrawables.clear();
}
}