lib/ProMotion/screen/screen_module.rb in ProMotion-2.3.0 vs lib/ProMotion/screen/screen_module.rb in ProMotion-2.3.1

- old
+ new

@@ -40,12 +40,16 @@ when :none status_bar_hidden true when :light status_bar_hidden false status_bar_style UIStatusBarStyleLightContent - else + when :dark status_bar_hidden false status_bar_style UIStatusBarStyleDefault + else + status_bar_hidden false + global_style = NSBundle.mainBundle.objectForInfoDictionaryKey("UIStatusBarStyle") + status_bar_style global_style ? Object.const_get(global_style) : UIStatusBarStyleDefault end end def add_nav_bar_buttons set_nav_bar_button(self.class.get_nav_bar_button[:side], self.class.get_nav_bar_button) if self.class.get_nav_bar_button