Fix memory leak in RoundedCornerImageView

After calling #setImageDrawable(null), the Bitmap is still retained
in the BitmapShader of mPaint. This CL resets the Shader in that case.

Bug: 959886
Change-Id: I995f46940281eedd4160b139e67a5ee4e18b5c34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1595292
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659679}
1 file changed