private static void syncCache(Context context) {
if (!isCacheReady(true)) {
// In this case, we should try to show a toast
if (context instanceof Gallery) { if (mbSDMemoryLimit){
App.get(context).showToast(context.getResources().getString(Res.string.sd_full), Toast.LENGTH_LONG);
}else{
App.get(context).showToast(context.getResources().getString(Res.string.loading_new), Toast.LENGTH_LONG);
}
}