mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
am 51894540: am e1899e44: Merge "Adding size check when generating holographic outline" into ub-launcher3-burnaby
* commit '5189454083640c81bf3a171422b3ef114f150a77': Adding size check when generating holographic outline
This commit is contained in:
@@ -164,6 +164,9 @@ public class HolographicOutlineHelper {
|
|||||||
|
|
||||||
int bitmapWidth = (int) (rect.width() * view.getScaleX());
|
int bitmapWidth = (int) (rect.width() * view.getScaleX());
|
||||||
int bitmapHeight = (int) (rect.height() * view.getScaleY());
|
int bitmapHeight = (int) (rect.height() * view.getScaleY());
|
||||||
|
if (bitmapHeight <= 0 || bitmapWidth <= 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
int key = (bitmapWidth << 16) | bitmapHeight;
|
int key = (bitmapWidth << 16) | bitmapHeight;
|
||||||
Bitmap cache = mBitmapCache.get(key);
|
Bitmap cache = mBitmapCache.get(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user