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:
parent
fda10a1402
commit
4b62f85a89
1 changed files with 10 additions and 0 deletions
|
@ -286,6 +286,16 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
|||
FBTextKind.CODE
|
||||
};
|
||||
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]);
|
||||
if (decoration == null) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue