|
|
|
|
478
|
private static Bitmap getBitmapForScreenshot(final int width, final int height) {
|
478
|
private static Bitmap getBitmapForScreenshot(final int width, final int height) {
|
479
|
synchronized (guardBitmaps) {
|
479
|
synchronized (guardBitmaps) {
|
480
|
for (final Bitmap bmp : weakBitmaps) {
|
480
|
for (final Bitmap bmp : weakBitmaps) {
|
481
|
- if (bmp.getWidth() >= width && bmp.getHeight() >= height) {
|
|
|
|
|
481
|
+ if (bmp.getWidth() == width && bmp.getHeight() == height) {
|
482
|
weakBitmaps.remove(bmp);
|
482
|
weakBitmaps.remove(bmp);
|
483
|
bmp.eraseColor(Color.TRANSPARENT);
|
483
|
bmp.eraseColor(Color.TRANSPARENT);
|
484
|
return bmp;
|
484
|
return bmp;
|