|
@@ -62,6 +62,7 @@ public abstract class Screen extends RelativeLayout implements Subscriber {
|
62
|
62
|
createViews();
|
63
|
63
|
EventBus.instance.register(this);
|
64
|
64
|
sharedElements = new SharedElements();
|
|
65
|
+ setDrawUnderStatusBar(styleParams.drawUnderStatusBar);
|
65
|
66
|
}
|
66
|
67
|
|
67
|
68
|
public void registerSharedElement(SharedElementTransition toView, String key) {
|
|
@@ -106,6 +107,7 @@ public abstract class Screen extends RelativeLayout implements Subscriber {
|
106
|
107
|
setStatusBarHidden(styleParams.statusBarHidden);
|
107
|
108
|
setStatusBarTextColorScheme(styleParams.statusBarTextColorScheme);
|
108
|
109
|
setNavigationBarColor(styleParams.navigationBarColor);
|
|
110
|
+ setDrawUnderStatusBar(styleParams.drawUnderStatusBar);
|
109
|
111
|
topBar.setStyle(styleParams);
|
110
|
112
|
if (styleParams.screenBackgroundColor.hasColor()) {
|
111
|
113
|
setBackgroundColor(styleParams.screenBackgroundColor.getColor());
|
|
@@ -174,6 +176,10 @@ public abstract class Screen extends RelativeLayout implements Subscriber {
|
174
|
176
|
StatusBar.setHidden(((NavigationActivity) activity).getScreenWindow(), statusBarHidden);
|
175
|
177
|
}
|
176
|
178
|
|
|
179
|
+ private void setDrawUnderStatusBar(boolean drawUnderStatusBar) {
|
|
180
|
+ StatusBar.displayOverScreen(this, drawUnderStatusBar);
|
|
181
|
+ }
|
|
182
|
+
|
177
|
183
|
private void setStatusBarTextColorScheme(StatusBarTextColorScheme textColorScheme) {
|
178
|
184
|
StatusBar.setTextColorScheme(this, textColorScheme);
|
179
|
185
|
}
|