mPurgeHandler.removeCallbacks(mPurgerRunnable);
mPurgeHandler.postDelayed(mPurgerRunnable, DELAY_BEFORE_PURGE);
}
@Override
public boolean getFile(String path, String targetPath) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean clearFile(String path) {
// TODO Auto-generated method stub
return false;
}
@Override
public void saveBitmap(String url, Bitmap bitmap) {
if (bitmap != null) {
synchronized (mHardBitmapCache) {
mHardBitmapCache.put(url, bitmap);
}
}
}
@Override
public int getCurrentCacheBitmapNumbers() {
int numbers = 0;
if (mHardBitmapCache != null) {
numbers = mHardBitmapCache.size();
}
if (mSoftBitmapCache != null) {
numbers = numbers mSoftBitmapCache.size();
}
return numbers;
}
@Override
public boolean clearCacheBitmaps() {
try {
mHardBitmapCache.clear();
mSoftBitmapCache.clear();
} catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
}
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-49624-3.html
请你永远做千纸鹤心里完美的小王子#1128迈全员加速中#
多多也超棒的
#易烊千玺##易烊千玺献声小王子#千千