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