|
@@ -13,7 +13,6 @@ import com.reactnativenavigation.params.ScreenParams;
|
13
|
13
|
import com.reactnativenavigation.params.StyleParams;
|
14
|
14
|
import com.reactnativenavigation.params.TitleBarButtonParams;
|
15
|
15
|
import com.reactnativenavigation.params.TitleBarLeftButtonParams;
|
16
|
|
-import com.reactnativenavigation.utils.SdkSupports;
|
17
|
16
|
import com.reactnativenavigation.utils.ViewUtils;
|
18
|
17
|
import com.reactnativenavigation.views.TitleBarBackButtonListener;
|
19
|
18
|
import com.reactnativenavigation.views.TopBar;
|
|
@@ -92,9 +91,7 @@ public abstract class Screen extends RelativeLayout {
|
92
|
91
|
|
93
|
92
|
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
94
|
93
|
private void setStatusBarColor(StyleParams.Color statusBarColor) {
|
95
|
|
- if (!SdkSupports.lollipop()) {
|
96
|
|
- return;
|
97
|
|
- }
|
|
94
|
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) return;
|
98
|
95
|
|
99
|
96
|
final Activity context = (Activity) getContext();
|
100
|
97
|
final Window window = context.getWindow();
|
|
@@ -107,9 +104,7 @@ public abstract class Screen extends RelativeLayout {
|
107
|
104
|
|
108
|
105
|
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
109
|
106
|
public void setNavigationBarColor(StyleParams.Color navigationBarColor) {
|
110
|
|
- if (!SdkSupports.lollipop()) {
|
111
|
|
- return;
|
112
|
|
- }
|
|
107
|
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) return;
|
113
|
108
|
|
114
|
109
|
final Activity context = (Activity) getContext();
|
115
|
110
|
final Window window = context.getWindow();
|