|
@@ -575,7 +575,7 @@ public class LocalNotification extends CordovaPlugin {
|
|
|
.getSystemService(Context.KEYGUARD_SERVICE);
|
|
.getSystemService(Context.KEYGUARD_SERVICE);
|
|
|
|
|
|
|
|
//noinspection SimplifiableIfStatement
|
|
//noinspection SimplifiableIfStatement
|
|
|
- if (km.isKeyguardLocked())
|
|
|
|
|
|
|
+ if (km != null && km.isKeyguardLocked())
|
|
|
return false;
|
|
return false;
|
|
|
|
|
|
|
|
return view.getView().getWindowVisibility() == View.VISIBLE;
|
|
return view.getView().getWindowVisibility() == View.VISIBLE;
|