mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
cleanup
This commit is contained in:
parent
9bfce633ff
commit
d98586fd6a
1 changed files with 4 additions and 4 deletions
|
@ -165,12 +165,12 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
|||
*/
|
||||
appearanceScreen.addOption(androidLibrary.ShowStatusBarOption, "showStatusBar");
|
||||
appearanceScreen.addOption(androidLibrary.DisableButtonLightsOption, "disableButtonLights");
|
||||
|
||||
|
||||
if (DeviceType.Instance().isEInk()) {
|
||||
final EInkOptions einkOptions = new EInkOptions();
|
||||
final Screen einkScreen = createPreferenceScreen("eink");
|
||||
final ZLPreferenceSet einkPreferences = new ZLPreferenceSet();
|
||||
|
||||
|
||||
einkScreen.addPreference(new ZLBooleanPreference(
|
||||
this, einkOptions.EnableFastRefresh, einkScreen.Resource, "enableFastRefresh"
|
||||
) {
|
||||
|
@ -180,12 +180,12 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
|||
einkPreferences.setEnabled(einkOptions.EnableFastRefresh.getValue());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
final ZLIntegerRangePreference updateIntervalPreference = new ZLIntegerRangePreference(
|
||||
this, einkScreen.Resource.getResource("interval"), einkOptions.UpdateInterval
|
||||
);
|
||||
einkScreen.addPreference(updateIntervalPreference);
|
||||
|
||||
|
||||
einkPreferences.add(updateIntervalPreference);
|
||||
einkPreferences.setEnabled(einkOptions.EnableFastRefresh.getValue());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue