を返すメソッドがDrawable
あり、そのBitmap
オブジェクトがリサイクルされるとリロードされます。
public Drawable getLogo() {
if(logo == null || Util.isRecycled(logo)) //Util.isRecycled checks - is Drawable's bitmap recycled, if it had so
logo = CacheController.getInstance().getLogo(this);
return logo;
}
しかし、呼び出し直後bitmap.recycle()
のように見えますが、bitmap.isRecycled()
まだ returnfalse
です。そのビットマップのリサイクル プロセスは非同期に行われますか、それとも私のコードの単なるバグですか? Bitmap
もしそうなら、それが現在リサイクルされていないことをどのように確認できますか?