소스 검색

fix unit tests

Guy Carmeli 5 년 전
부모
커밋
5a6fc7fd39
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      lib/android/app/src/main/java/com/reactnativenavigation/utils/StatusBarUtils.java

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/utils/StatusBarUtils.java 파일 보기

@@ -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
 }