mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 01:39:18 +02:00
better pref enabling/disabling
This commit is contained in:
parent
a8f4c69858
commit
01b8ed9c37
2 changed files with 2 additions and 15 deletions
|
@ -710,7 +710,7 @@
|
|||
<node name="summaryOn" value="Show TOC marks in the footer bar"/>
|
||||
<node name="summaryOff" value="Don't show TOC marks in the footer bar"/>
|
||||
</node>
|
||||
<node name="displayProgress" value="Show reading progress">
|
||||
<node name="showProgress" value="Show reading progress">
|
||||
<node name="dontDisplay" value="Do not show"/>
|
||||
<node name="asPages" value="As page numbers"/>
|
||||
<node name="asPercentage" value="As percentage"/>
|
||||
|
|
|
@ -556,20 +556,7 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
|||
newStyleFooterPreferences.add(statusLineScreen.addOption(profile.FooterNGForegroundOption, "footerForegroundColor"));
|
||||
newStyleFooterPreferences.add(statusLineScreen.addOption(profile.FooterNGForegroundUnreadOption, "footerForegroundUnreadColor"));
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowTOCMarks, "tocMarks"));
|
||||
|
||||
statusLineScreen.addPreference(new ZLEnumPreference(
|
||||
this,
|
||||
footerOptions.ShowProgress,
|
||||
statusLineScreen.Resource.getResource("showProgressTypes")
|
||||
) {
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
int scrollbarType = viewOptions.ScrollbarType.getValue();
|
||||
return scrollbarType == FBView.SCROLLBAR_SHOW_AS_FOOTER ||
|
||||
scrollbarType == FBView.SCROLLBAR_SHOW_AS_FOOTER_OLD_STYLE;
|
||||
}
|
||||
});
|
||||
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowProgress, "showProgress"));
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowClock, "showClock"));
|
||||
footerPreferences.add(statusLineScreen.addOption(footerOptions.ShowBattery, "showBattery"));
|
||||
footerPreferences.add(statusLineScreen.addPreference(new FontPreference(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue