1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

LibraryUtil => BookUtil

This commit is contained in:
Nikolay Pultsin 2013-01-14 07:10:50 +04:00
parent e588c37b3b
commit 370e99c34a
4 changed files with 5 additions and 5 deletions

View file

@ -200,7 +200,7 @@ public class BookInfoActivity extends Activity {
coverView.setVisibility(View.GONE); coverView.setVisibility(View.GONE);
coverView.setImageDrawable(null); coverView.setImageDrawable(null);
final ZLImage image = LibraryUtil.getCover(book); final ZLImage image = BookUtil.getCover(book);
if (image == null) { if (image == null) {
return; return;
@ -274,7 +274,7 @@ public class BookInfoActivity extends Activity {
private void setupAnnotation(Book book) { private void setupAnnotation(Book book) {
final TextView titleView = (TextView)findViewById(R.id.book_info_annotation_title); final TextView titleView = (TextView)findViewById(R.id.book_info_annotation_title);
final TextView bodyView = (TextView)findViewById(R.id.book_info_annotation_body); final TextView bodyView = (TextView)findViewById(R.id.book_info_annotation_body);
final String annotation = LibraryUtil.getAnnotation(book); final String annotation = BookUtil.getAnnotation(book);
if (annotation == null) { if (annotation == null) {
titleView.setVisibility(View.GONE); titleView.setVisibility(View.GONE);
bodyView.setVisibility(View.GONE); bodyView.setVisibility(View.GONE);

View file

@ -81,7 +81,7 @@ public class BookTree extends LibraryTree {
@Override @Override
protected ZLImage createCover() { protected ZLImage createCover() {
return LibraryUtil.getCover(Book); return BookUtil.getCover(Book);
} }
@Override @Override

View file

@ -25,7 +25,7 @@ import org.geometerplus.zlibrary.core.image.ZLImage;
import org.geometerplus.fbreader.formats.FormatPlugin; import org.geometerplus.fbreader.formats.FormatPlugin;
import org.geometerplus.fbreader.bookmodel.BookReadingException; import org.geometerplus.fbreader.bookmodel.BookReadingException;
public abstract class LibraryUtil { public abstract class BookUtil {
public static ZLImage getCover(Book book) { public static ZLImage getCover(Book book) {
return book != null ? book.getCover() : null; return book != null ? book.getCover() : null;
} }

View file

@ -85,7 +85,7 @@ public class FileTree extends LibraryTree {
@Override @Override
public ZLImage createCover() { public ZLImage createCover() {
return LibraryUtil.getCover(getBook()); return BookUtil.getCover(getBook());
} }
public ZLFile getFile() { public ZLFile getFile() {