| 
				
			 | 
			
			
				@@ -14,26 +14,28 @@ public class StyleParamsParser { 
			 | 
		
	
		
			
			| 
				14
			 | 
			
				14
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				15
			 | 
			
				15
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				16
			 | 
			
				16
			 | 
			
			
				     public StyleParams parse() { 
			 | 
		
	
		
			
			| 
				17
			 | 
			
				
			 | 
			
			
				-        StyleParams result = new StyleParams(); 
			 | 
		
	
		
			
			| 
				18
			 | 
			
				17
			 | 
			
			
				         if (params == null) { 
			 | 
		
	
		
			
			| 
				19
			 | 
			
				
			 | 
			
			
				-            result.titleBarDisabledButtonColor = getTitleBarDisabledButtonColor(); 
			 | 
		
	
		
			
			| 
				20
			 | 
			
				
			 | 
			
			
				-            result.topBarElevationShadowEnabled = true; 
			 | 
		
	
		
			
			| 
				21
			 | 
			
				
			 | 
			
			
				-            return result; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				+            return createDefaultStyleParams(); 
			 | 
		
	
		
			
			| 
				22
			 | 
			
				19
			 | 
			
			
				         } 
			 | 
		
	
		
			
			| 
				23
			 | 
			
				20
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				21
			 | 
			
			
				+        StyleParams result = new StyleParams(); 
			 | 
		
	
		
			
			| 
				24
			 | 
			
				22
			 | 
			
			
				         result.statusBarColor = getColor("statusBarColor", getDefaultStatusBarColor()); 
			 | 
		
	
		
			
			| 
				25
			 | 
			
				23
			 | 
			
			
				         result.contextualMenuStatusBarColor = getColor("contextualMenuStatusBarColor", getDefaultContextualMenuStatusBarColor()); 
			 | 
		
	
		
			
			| 
				26
			 | 
			
				24
			 | 
			
			
				         result.contextualMenuButtonsColor = getColor("contextualMenuButtonsColor", getDefaultContextualMenuButtonsColor()); 
			 | 
		
	
		
			
			| 
				27
			 | 
			
				25
			 | 
			
			
				         result.contextualMenuBackgroundColor = getColor("contextualMenuBackgroundColor", getDefaultContextualMenuBackgroundColor()); 
			 | 
		
	
		
			
			| 
				28
			 | 
			
				26
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				29
			 | 
			
				27
			 | 
			
			
				         result.topBarColor = getColor("topBarColor", getDefaultTopBarColor()); 
			 | 
		
	
		
			
			| 
				30
			 | 
			
				
			 | 
			
			
				-        result.collapsingTopBarParams = new CollapsingTopBarParamsParser(params).parse(); 
			 | 
		
	
		
			
			| 
				31
			 | 
			
				
			 | 
			
			
				-        result.titleBarHidden = getBoolean("titleBarHidden", getDefaultTopBarHidden()); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				28
			 | 
			
			
				+        result.titleBarHideOnScroll = getBoolean("titleBarHideOnScroll", getDefaultTitleBarHideOnScroll()); 
			 | 
		
	
		
			
			| 
				32
			 | 
			
				29
			 | 
			
			
				         result.topBarTransparent = getBoolean("topBarTransparent", getDefaultTopBarHidden()); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				30
			 | 
			
			
				+        result.drawScreenBelowTopBar = params.getBoolean("drawBelowTopBar", getDefaultScreenBelowTopBar()); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				31
			 | 
			
			
				+        if (result.topBarTransparent) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				32
			 | 
			
			
				+            result.drawScreenBelowTopBar = false; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				33
			 | 
			
			
				+        } 
			 | 
		
	
		
			
			| 
				
			 | 
			
				34
			 | 
			
			
				+        result.collapsingTopBarParams = new CollapsingTopBarParamsParser(params, result.titleBarHideOnScroll, result.drawScreenBelowTopBar).parse(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				35
			 | 
			
			
				+        result.titleBarHidden = getBoolean("titleBarHidden", getDefaultTopBarHidden()); 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				36
			 | 
			
			
				         result.topBarElevationShadowEnabled = getBoolean("topBarElevationShadowEnabled", getDefaultTopBarElevationShadowEnabled()); 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				37
			 | 
			
			
				         result.titleBarTitleColor = getColor("titleBarTitleColor", getDefaultTitleBarColor()); 
			 | 
		
	
		
			
			| 
				35
			 | 
			
				38
			 | 
			
			
				         result.topBarTranslucent = getBoolean("topBarTranslucent", getDefaultTopBarTranslucent()); 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				
			 | 
			
			
				-        result.titleBarHideOnScroll = getBoolean("titleBarHideOnScroll", getDefaultTitleBarHideOnScroll()); 
			 | 
		
	
		
			
			| 
				37
			 | 
			
				39
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				38
			 | 
			
				40
			 | 
			
			
				         result.titleBarSubtitleColor = getColor("titleBarSubtitleColor", getDefaultSubtitleBarColor()); 
			 | 
		
	
		
			
			| 
				39
			 | 
			
				41
			 | 
			
			
				         result.titleBarButtonColor = getColor("titleBarButtonColor", getTitleBarButtonColor()); 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -46,18 +48,13 @@ public class StyleParamsParser { 
			 | 
		
	
		
			
			| 
				46
			 | 
			
				48
			 | 
			
			
				         result.selectedTopTabIndicatorHeight = getInt("selectedTopTabIndicatorHeight", getDefaultSelectedTopTabIndicatorHeight()); 
			 | 
		
	
		
			
			| 
				47
			 | 
			
				49
			 | 
			
			
				         result.selectedTopTabIndicatorColor = getColor("selectedTopTabIndicatorColor", getDefaultSelectedTopTabIndicatorColor()); 
			 | 
		
	
		
			
			| 
				48
			 | 
			
				50
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				49
			 | 
			
				
			 | 
			
			
				-        result.drawScreenBelowTopBar = params.getBoolean("drawBelowTopBar", getDefaultScreenBelowTopBar()); 
			 | 
		
	
		
			
			| 
				50
			 | 
			
				
			 | 
			
			
				-        if (result.topBarTransparent) { 
			 | 
		
	
		
			
			| 
				51
			 | 
			
				
			 | 
			
			
				-            result.drawScreenBelowTopBar = false; 
			 | 
		
	
		
			
			| 
				52
			 | 
			
				
			 | 
			
			
				-        } 
			 | 
		
	
		
			
			| 
				53
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				54
			 | 
			
				51
			 | 
			
			
				         result.screenBackgroundColor = getColor("screenBackgroundColor", getDefaultScreenBackgroundColor()); 
			 | 
		
	
		
			
			| 
				55
			 | 
			
				52
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				56
			 | 
			
				53
			 | 
			
			
				         result.bottomTabsHidden = getBoolean("bottomTabsHidden", getDefaultBottomTabsHidden()); 
			 | 
		
	
		
			
			| 
				57
			 | 
			
				54
			 | 
			
			
				         result.drawScreenAboveBottomTabs = !result.bottomTabsHidden && 
			 | 
		
	
		
			
			| 
				58
			 | 
			
				55
			 | 
			
			
				                                            params.getBoolean("drawScreenAboveBottomTabs", getDefaultDrawScreenAboveBottomTabs()); 
			 | 
		
	
		
			
			| 
				59
			 | 
			
				
			 | 
			
			
				-        result.bottomTabsHiddenOnScroll = 
			 | 
		
	
		
			
			| 
				60
			 | 
			
				
			 | 
			
			
				-                getBoolean("bottomTabsHiddenOnScroll", getDefaultBottomTabsHiddenOnScroll()); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				56
			 | 
			
			
				+        result.drawScreenAboveBottomTabs = drawScreenUnderBottomTabsIfTitleBarIsHiddenOnScroll(result); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				57
			 | 
			
			
				+        result.bottomTabsHiddenOnScroll = getBoolean("bottomTabsHiddenOnScroll", getDefaultBottomTabsHiddenOnScroll()); 
			 | 
		
	
		
			
			| 
				61
			 | 
			
				58
			 | 
			
			
				         result.bottomTabsColor = getColor("bottomTabsColor", getDefaultBottomTabsColor()); 
			 | 
		
	
		
			
			| 
				62
			 | 
			
				59
			 | 
			
			
				         result.bottomTabsButtonColor = getColor("bottomTabsButtonColor", getDefaultBottomTabsButtonColor()); 
			 | 
		
	
		
			
			| 
				63
			 | 
			
				60
			 | 
			
			
				         result.selectedBottomTabsButtonColor = 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -71,6 +68,18 @@ public class StyleParamsParser { 
			 | 
		
	
		
			
			| 
				71
			 | 
			
				68
			 | 
			
			
				         return result; 
			 | 
		
	
		
			
			| 
				72
			 | 
			
				69
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				73
			 | 
			
				70
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				71
			 | 
			
			
				+    private StyleParams createDefaultStyleParams() { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				72
			 | 
			
			
				+        StyleParams result = new StyleParams(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				73
			 | 
			
			
				+        result.titleBarDisabledButtonColor = getTitleBarDisabledButtonColor(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				74
			 | 
			
			
				+        result.topBarElevationShadowEnabled = true; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				75
			 | 
			
			
				+        result.titleBarHideOnScroll = false; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				76
			 | 
			
			
				+        return result; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				77
			 | 
			
			
				+    } 
			 | 
		
	
		
			
			| 
				
			 | 
			
				78
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				79
			 | 
			
			
				+    private boolean drawScreenUnderBottomTabsIfTitleBarIsHiddenOnScroll(StyleParams result) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				80
			 | 
			
			
				+        return !result.titleBarHideOnScroll; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				81
			 | 
			
			
				+    } 
			 | 
		
	
		
			
			| 
				
			 | 
			
				82
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				74
			 | 
			
				83
			 | 
			
			
				     private StyleParams.Color getDefaultContextualMenuStatusBarColor() { 
			 | 
		
	
		
			
			| 
				75
			 | 
			
				84
			 | 
			
			
				         return new StyleParams.Color(Color.parseColor("#7c7c7c")); 
			 | 
		
	
		
			
			| 
				76
			 | 
			
				85
			 | 
			
			
				     } 
			 |