add isValid() to Bitmap interface

This commit is contained in:
Hannes Janetzek
2014-01-20 22:49:33 +01:00
parent 652024c5dc
commit 94011804be
5 changed files with 22 additions and 1 deletions

View File

@@ -85,4 +85,9 @@ public class AndroidBitmap implements org.oscim.backend.canvas.Bitmap {
public void recycle() {
mBitmap.recycle();
}
@Override
public boolean isValid() {
return mBitmap != null;
}
}