forked from gotomypc/mapbox-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
very important fix: When reusing a bitmap. Must clear it first, other…
…wise we might end up drawing the wrong tile
- Loading branch information
1 parent
96ef3da
commit 6362dbd
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
MapboxAndroidSDK/src/main/java/uk/co/senab/bitmapcache/SDK12.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package uk.co.senab.bitmapcache; | ||
|
||
|
||
import android.annotation.TargetApi; | ||
import android.graphics.Bitmap; | ||
import android.os.Build; | ||
|
||
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1) | ||
public class SDK12 { | ||
static void setHasAlpha(Bitmap bitmap, final boolean hasAlpha) { | ||
bitmap.setHasAlpha(hasAlpha); | ||
} | ||
} |