mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
Merge branch '2.6-yota2' into 2.6-kindle
This commit is contained in:
commit
63d1530087
3 changed files with 4 additions and 25 deletions
|
@ -206,16 +206,7 @@ public class BookInfoActivity extends Activity implements MenuItem.OnMenuItemCli
|
|||
((TextView)findViewById(R.id.book_info_title)).setText(myResource.getResource("bookInfo").getValue());
|
||||
|
||||
setupInfoPair(R.id.book_title, "title", book.getTitle());
|
||||
|
||||
final StringBuilder buffer = new StringBuilder();
|
||||
final List<Author> authors = book.authors();
|
||||
for (Author a : authors) {
|
||||
if (buffer.length() > 0) {
|
||||
buffer.append(", ");
|
||||
}
|
||||
buffer.append(a.DisplayName);
|
||||
}
|
||||
setupInfoPair(R.id.book_authors, "authors", buffer, authors.size());
|
||||
setupInfoPair(R.id.book_authors, "authors", book.authorsString(", "), book.authors().size());
|
||||
|
||||
final SeriesInfo series = book.getSeriesInfo();
|
||||
setupInfoPair(R.id.book_series, "series", series == null ? null : series.Series.getTitle());
|
||||
|
@ -224,19 +215,7 @@ public class BookInfoActivity extends Activity implements MenuItem.OnMenuItemCli
|
|||
seriesIndexString = series.Index.toPlainString();
|
||||
}
|
||||
setupInfoPair(R.id.book_series_index, "indexInSeries", seriesIndexString);
|
||||
|
||||
buffer.delete(0, buffer.length());
|
||||
final HashSet<String> tagNames = new HashSet<String>();
|
||||
for (Tag tag : book.tags()) {
|
||||
if (!tagNames.contains(tag.Name)) {
|
||||
if (buffer.length() > 0) {
|
||||
buffer.append(", ");
|
||||
}
|
||||
buffer.append(tag.Name);
|
||||
tagNames.add(tag.Name);
|
||||
}
|
||||
}
|
||||
setupInfoPair(R.id.book_tags, "tags", buffer, tagNames.size());
|
||||
setupInfoPair(R.id.book_tags, "tags", book.tagsString(", "), book.tags().size());
|
||||
String language = book.getLanguage();
|
||||
if (!ZLLanguageUtil.languageCodes().contains(language)) {
|
||||
language = Language.OTHER_CODE;
|
||||
|
|
|
@ -76,7 +76,7 @@ public abstract class MainView extends View {
|
|||
activity.getZLibrary().ScreenBrightnessLevelOption.setValue(percent);
|
||||
if (showPercent) {
|
||||
if (myInfoView == null) {
|
||||
myInfoView = (TextView)activity.findViewById(R.id.percent_view);
|
||||
myInfoView = (TextView)activity.findViewById(R.id.main_view_info);
|
||||
}
|
||||
if (myInfoView != null) {
|
||||
synchronized (myInfoTimer) {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
android:fadeScrollbars="false"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/percent_view"
|
||||
android:id="@+id/main_view_info"
|
||||
android:visibility="gone"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue