use of com.baker.abaker.views.MagazineThumb in project baker-android by bakerframework.
the class GindActivity method unzipPendingPackages.
private void unzipPendingPackages() {
for (int i = 0; i < flowLayout.getChildCount(); i++) {
MagazineThumb thumb = (MagazineThumb) flowLayout.getChildAt(i);
String zipName = thumb.getMagazine().getName().concat(this.getString(R.string.package_extension));
if (this.magazineZipExists(zipName) && !thumb.isDownloading()) {
Log.d(this.getClass().toString(), "Continue unzip of " + thumb.getMagazine().getName());
String filepath = Configuration.getMagazinesDirectory(this.getApplicationContext()) + File.separator + zipName;
thumb.startUnzip(filepath, thumb.getMagazine().getName());
} else if (thumb.isDownloading()) {
Log.d(this.getClass().getName(), "Continue download of: " + thumb.getMagazine().getName());
// We continue the download.
thumb.startPackageDownload();
}
}
}
use of com.baker.abaker.views.MagazineThumb in project baker-android by bakerframework.
the class GindActivity method downloadNextThumbnail.
private void downloadNextThumbnail() {
if (!this.thumbnailIds.isEmpty() && this.thumbnailDownloaderHandler != null) {
int id = this.thumbnailIds.get(0);
MagazineThumb thumb = (MagazineThumb) findViewById(id);
thumb.downloadCover();
this.thumbnailIds.remove(0);
}
}
Aggregations