Skip to content

Commit

Permalink
Merge pull request #4217 from matt-langston/timob-13688
Browse files Browse the repository at this point in the history
TIMOB-13688: Bitmap.getByteCount() wasn't added to Android until API Level 12.
  • Loading branch information
pingwang2011 committed Apr 30, 2013
2 parents 7c83c2f + fdbb4db commit 846ff65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected int sizeOf(Integer key, Bitmap bitmap)
{
// The cache size will be measured in kilobytes rather than
// number of items.
if (android.os.Build.VERSION.SDK_INT >= TiC.API_LEVEL_HONEYCOMB) {
if (android.os.Build.VERSION.SDK_INT > TiC.API_LEVEL_HONEYCOMB) {
return bitmap.getByteCount() / 1024;
} else {
return bitmap.getRowBytes() * bitmap.getHeight() / 1024;
Expand Down

0 comments on commit 846ff65

Please sign in to comment.