We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b7c4a commit 68ea937Copy full SHA for 68ea937
iterableapi/src/main/java/com/iterable/iterableapi/IterableNotificationHelper.java
@@ -270,8 +270,8 @@ private String getChannelName(Context context) {
270
channelName = info.metaData.getString(IterableConstants.NOTIFICATION_CHANNEL_NAME);
271
272
// Try to read from a string resource
273
- if (channelName == null) {
274
- int stringId = info.metaData.getInt(IterableConstants.NOTIFICATION_CHANNEL_NAME);
+ int stringId = info.metaData.getInt(IterableConstants.NOTIFICATION_CHANNEL_NAME);
+ if (channelName == null && stringId != 0) {
275
channelName = context.getString(stringId);
276
}
277
IterableLogger.d(IterableNotificationBuilder.TAG, "channel name: " + channelName);
0 commit comments