Skip to content

Commit

Permalink
Merge pull request #4289 from matt-langston/timob-13688-3_1_X
Browse files Browse the repository at this point in the history
TIMOB-13688_3_1_X: Bitmap.getByteCount() wasn't added to Android until API Level 12.
  • Loading branch information
pingwang2011 committed May 17, 2013
2 parents cb76f33 + 0c91713 commit 0b0c7b4
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 0b0c7b4

Please sign in to comment.