Guy Carmeli 5 gadus atpakaļ
vecāks
revīzija
5a6fc7fd39

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/utils/StatusBarUtils.java Parādīt failu

@@ -32,6 +32,6 @@ public class StatusBarUtils {
32 32
 
33 33
     public static boolean isTranslucent(Window window) {
34 34
         WindowManager.LayoutParams lp = window.getAttributes();
35
-        return (lp.flags & FLAG_TRANSLUCENT_STATUS) == FLAG_TRANSLUCENT_STATUS;
35
+        return lp != null && (lp.flags & FLAG_TRANSLUCENT_STATUS) == FLAG_TRANSLUCENT_STATUS;
36 36
     }
37 37
 }