Browse Source

Merge subtitle options

Guy Carmeli 6 years ago
parent
commit
f398493d82

+ 3
- 1
lib/android/app/src/main/java/com/reactnativenavigation/presentation/OptionsPresenter.java View File

@@ -130,15 +130,17 @@ public class OptionsPresenter {
130 130
         if (options.title.component.hasValue()) topBar.setTitleComponent(options.title.component.get(), options.title.alignment);
131 131
         if (options.title.color.hasValue()) topBar.setTitleTextColor(options.title.color.get());
132 132
         if (options.title.fontSize.hasValue()) topBar.setTitleFontSize(options.title.fontSize.get());
133
+        if (options.title.fontFamily != null) topBar.setTitleTypeface(options.title.fontFamily);
133 134
 
134 135
         if (options.subtitle.text.hasValue()) topBar.setSubtitle(options.subtitle.text.get());
135 136
         if (options.subtitle.color.hasValue()) topBar.setSubtitleColor(options.subtitle.color.get());
137
+        if (options.subtitle.fontSize.hasValue()) topBar.setSubtitleFontSize(options.subtitle.fontSize.get());
138
+        if (options.subtitle.fontFamily != null) topBar.setSubtitleFontFamily(options.subtitle.fontFamily);
136 139
 
137 140
         if (options.background.color.hasValue()) topBar.setBackgroundColor(options.background.color);
138 141
 
139 142
         if (options.testId.hasValue()) topBar.setTestId(options.testId.get());
140 143
 
141
-        if (options.title.fontFamily != null) topBar.setTitleTypeface(options.title.fontFamily);
142 144
         if (options.visible.isFalse()) {
143 145
             if (options.animate.isTrueOrUndefined()) {
144 146
                 topBar.hideAnimate(animationsOptions.pop.topBar);