diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5714fce7..ef8d7d52 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,8 @@
# Changelog
+### v3.5.2 (Apr 6, 2023) with Chat SDK `v4.6.1`
+* Added `setUseHeaderLeftButton(boolean)` in `FeedNotificationChannelFragment.Builder`
+* Added `setUseHeaderLeftButton(boolean)` in `ChatNotificationChannelFragment.Builder`
+
### v3.5.1 (Mar 30, 2023) with Chat SDK `v4.6.0`
* Extended the maximum recording time of voice message to 10 minutes.
* Notifications
diff --git a/gradle.properties b/gradle.properties
index 619186fd..f4c01540 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -16,5 +16,5 @@ org.gradle.jvmargs=-Xmx1536m
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
-UIKIT_VERSION = 3.5.1
+UIKIT_VERSION = 3.5.2
UIKIT_VERSION_CODE = 1
diff --git a/uikit/build.gradle b/uikit/build.gradle
index dcf59cdc..154d2532 100644
--- a/uikit/build.gradle
+++ b/uikit/build.gradle
@@ -66,7 +66,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Sendbird
- api 'com.sendbird.sdk:sendbird-chat:4.6.0'
+ api 'com.sendbird.sdk:sendbird-chat:4.6.1'
implementation 'com.github.bumptech.glide:glide:4.13.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
diff --git a/uikit/src/main/java/com/sendbird/uikit/fragments/ChatNotificationChannelFragment.java b/uikit/src/main/java/com/sendbird/uikit/fragments/ChatNotificationChannelFragment.java
index 788668ff..e571da06 100644
--- a/uikit/src/main/java/com/sendbird/uikit/fragments/ChatNotificationChannelFragment.java
+++ b/uikit/src/main/java/com/sendbird/uikit/fragments/ChatNotificationChannelFragment.java
@@ -348,6 +348,20 @@ public Builder setUseHeader(boolean useHeader) {
return this;
}
+ /**
+ * Sets whether the left button of the header is used.
+ *
+ * @param useHeaderLeftButton true
if the left button of the header is used,
+ * false
otherwise.
+ * @return This Builder object to allow for chaining of calls to set methods.
+ * @since 3.5.2
+ */
+ @NonNull
+ public Builder setUseHeaderLeftButton(boolean useHeaderLeftButton) {
+ bundle.putBoolean(StringSet.KEY_USE_HEADER_LEFT_BUTTON, useHeaderLeftButton);
+ return this;
+ }
+
/**
* Sets the custom fragment. It must inherit {@link ChatNotificationChannelFragment}.
*
diff --git a/uikit/src/main/java/com/sendbird/uikit/fragments/FeedNotificationChannelFragment.java b/uikit/src/main/java/com/sendbird/uikit/fragments/FeedNotificationChannelFragment.java
index a4a4c38f..4002b8de 100644
--- a/uikit/src/main/java/com/sendbird/uikit/fragments/FeedNotificationChannelFragment.java
+++ b/uikit/src/main/java/com/sendbird/uikit/fragments/FeedNotificationChannelFragment.java
@@ -362,6 +362,20 @@ public Builder setUseHeader(boolean useHeader) {
return this;
}
+ /**
+ * Sets whether the left button of the header is used.
+ *
+ * @param useHeaderLeftButton true
if the left button of the header is used,
+ * false
otherwise.
+ * @return This Builder object to allow for chaining of calls to set methods.
+ * @since 3.5.2
+ */
+ @NonNull
+ public Builder setUseHeaderLeftButton(boolean useHeaderLeftButton) {
+ bundle.putBoolean(StringSet.KEY_USE_HEADER_LEFT_BUTTON, useHeaderLeftButton);
+ return this;
+ }
+
/**
* Sets the custom fragment. It must inherit {@link FeedNotificationChannelFragment}.
*
diff --git a/uikit/src/main/java/com/sendbird/uikit/fragments/UIKitFragmentFactory.java b/uikit/src/main/java/com/sendbird/uikit/fragments/UIKitFragmentFactory.java
index 128c4eeb..bf91624a 100644
--- a/uikit/src/main/java/com/sendbird/uikit/fragments/UIKitFragmentFactory.java
+++ b/uikit/src/main/java/com/sendbird/uikit/fragments/UIKitFragmentFactory.java
@@ -409,6 +409,7 @@ public Fragment newMessageThreadFragment(@NonNull String channelUrl, @NonNull Ba
public Fragment newFeedNotificationChannelFragment(@NonNull String channelUrl, @NonNull Bundle args) {
return new FeedNotificationChannelFragment.Builder(channelUrl)
.withArguments(args)
+ .setUseHeaderLeftButton(true)
.build();
}
@@ -423,6 +424,7 @@ public Fragment newFeedNotificationChannelFragment(@NonNull String channelUrl, @
public Fragment newChatNotificationChannelFragment(@NonNull String channelUrl, @NonNull Bundle args) {
return new ChatNotificationChannelFragment.Builder(channelUrl)
.withArguments(args)
+ .setUseHeaderLeftButton(true)
.build();
}
}