mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
LibraryUtil => BookUtil
This commit is contained in:
parent
e588c37b3b
commit
370e99c34a
4 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue