Fix null reference error in notifications (#8042)
This commit is contained in:
parent
41f8b078bb
commit
de5e85d71f
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class CustomPushNotification(
|
|||
|
||||
when (type) {
|
||||
CustomPushNotificationHelper.PUSH_TYPE_MESSAGE, CustomPushNotificationHelper.PUSH_TYPE_SESSION -> {
|
||||
val currentActivityName = mAppLifecycleFacade.runningReactContext.currentActivity?.componentName?.className ?: ""
|
||||
val currentActivityName = mAppLifecycleFacade.runningReactContext?.currentActivity?.componentName?.className ?: ""
|
||||
Log.i("ReactNative", currentActivityName)
|
||||
if (!mAppLifecycleFacade.isAppVisible() || currentActivityName != "MainActivity") {
|
||||
var createSummary = type == CustomPushNotificationHelper.PUSH_TYPE_MESSAGE
|
||||
|
|
|
|||
Loading…
Reference in a new issue