1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00

NG style preferences

This commit is contained in:
Nikolay Pultsin 2014-06-06 00:54:10 +01:00
parent fda10a1402
commit 4b62f85a89

View file

@ -286,6 +286,16 @@ public class PreferenceActivity extends ZLPreferenceActivity {
FBTextKind.CODE FBTextKind.CODE
}; };
for (int i = 0; i < styles.length; ++i) { for (int i = 0; i < styles.length; ++i) {
final ZLTextNGStyleDescription description = collection.getDescription(styles[i]);
if (description != null) {
final Screen ngScreen = moreStylesScreen.createPreferenceScreen(description.Name);
ngScreen.addPreference(new FontPreference(
this, textScreen.Resource, "font",
description.FontFamilyOption, true
));
continue;
}
final ZLTextStyleDecoration decoration = collection.getDecoration(styles[i]); final ZLTextStyleDecoration decoration = collection.getDecoration(styles[i]);
if (decoration == null) { if (decoration == null) {
continue; continue;