mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
changed extra fields order in footer: progress -- clock -- battery
This commit is contained in:
parent
e47f71cd99
commit
9a89f63423
2 changed files with 7 additions and 7 deletions
|
@ -393,9 +393,9 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
|||
footerPreferences.add(statusLineScreen.addOption(profile.FooterFillOption, "footerColor"));
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowTOCMarks, "tocMarks"));
|
||||
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowProgress, "showProgress"));
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowClock, "showClock"));
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowBattery, "showBattery"));
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowProgress, "showProgress"));
|
||||
footerPreferences.add(statusLineScreen.addPreference(new FontOption(
|
||||
this, statusLineScreen.Resource, "font",
|
||||
footerOptions.Font, false
|
||||
|
|
|
@ -522,6 +522,12 @@ public final class FBView extends ZLTextView {
|
|||
info.append("/");
|
||||
info.append(pagePosition.Total);
|
||||
}
|
||||
if (reader.FooterOptions.ShowClock.getValue()) {
|
||||
if (info.length() > 0) {
|
||||
info.append(" ");
|
||||
}
|
||||
info.append(ZLibrary.Instance().getCurrentTimeString());
|
||||
}
|
||||
if (reader.FooterOptions.ShowBattery.getValue()) {
|
||||
if (info.length() > 0) {
|
||||
info.append(" ");
|
||||
|
@ -529,12 +535,6 @@ public final class FBView extends ZLTextView {
|
|||
info.append(reader.getBatteryLevel());
|
||||
info.append("%");
|
||||
}
|
||||
if (reader.FooterOptions.ShowClock.getValue()) {
|
||||
if (info.length() > 0) {
|
||||
info.append(" ");
|
||||
}
|
||||
info.append(ZLibrary.Instance().getCurrentTimeString());
|
||||
}
|
||||
final String infoString = info.toString();
|
||||
|
||||
final int infoWidth = context.getStringWidth(infoString);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue