final int version = android.os.Build.VERSION.SDK_INT;
if (version >= 19) {
IMPL = new KitKatBitmapCompatImpl();
} else if (version >= 18) {
IMPL = new JbMr2BitmapCompatImpl();
} else if (version >= 12) {
IMPL = new HcMr1BitmapCompatImpl();
} else {
IMPL = new BaseBitmapImpl();
}
return IMPL.hasMipMap(bitmap);