am e1899e44: Merge "Adding size check when generating holographic outline" into ub-launcher3-burnaby

* commit 'e1899e44368f7602afc5b87a75102e7ff551982c':
  Adding size check when generating holographic outline
This commit is contained in:
Sunny Goyal
2015-09-28 19:21:58 +00:00
committed by Android Git Automerger

View File

@@ -164,6 +164,9 @@ public class HolographicOutlineHelper {
int bitmapWidth = (int) (rect.width() * view.getScaleX());
int bitmapHeight = (int) (rect.height() * view.getScaleY());
if (bitmapHeight <= 0 || bitmapWidth <= 0) {
return null;
}
int key = (bitmapWidth << 16) | bitmapHeight;
Bitmap cache = mBitmapCache.get(key);