# Switch to disable notifications does not work

**URL:** <https://community.sendbird.com/t/switch-to-disable-notifications-does-not-work/4789>\
**Category:** Android\
**Tags:** android, uikit, bug\
**Created:** [May 30, 2022, 9:58am UTC](https://community.sendbird.com/t/switch-to-disable-notifications-does-not-work/4789 "2022-05-30T09:58:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barros](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@Barros](https://community.sendbird.com/u/Barros)\
**Post date:** [May 30, 2022, 9:58am UTC](https://community.sendbird.com/t/switch-to-disable-notifications-does-not-work/4789/1 "2022-05-30T09:58:11Z")

</div>

Hi all,

I’m using Android UIKit version 2.2.5 with Android 10, and I’m facing up with the following issue:

When I open a chat from `ChannelList` I can disable notifications correctly:

 ![Schermata 2022-05-30 alle 11.31.44](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/a/a139d3a74b98674057ea1be3be3f6847c5fec87c.png)  
 ![Schermata 2022-05-30 alle 11.31.59](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/4/49a812e74a8ae475fe32c5979c7b1df2e02537d1.png)

But when I try to open that chat directly, the notifications switch is incorrectly enabled:

 ![Schermata 2022-05-30 alle 11.32.19](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/1/1158404e59776ee9f03acd8e13cf6b09a2a895f0.png)

More details:

- I have a `CustomChannelSettingsFragment` with:

```auto
    override fun onMenuItemClicked(
        view: View,
        menu: ChannelSettingMenu,
        data: GroupChannel
    ): Boolean {
        when (menu) {
            ChannelSettingMenu.MODERATIONS -> {}
            ChannelSettingMenu.MEMBERS -> {
                createCustomMemberListActivity(data.url)
                return true
            }
            ChannelSettingMenu.NOTIFICATIONS -> {}
            ChannelSettingMenu.LEAVE_CHANNEL -> {
                leaveChannel(data.url)
                return true
            }
            else -> {}
        }
        return false
    }

```

- to create or open a chat directly, I use the following implementation:

```auto
val params = GroupChannelParams()
                        .setPublic(false)
                        .setDistinct(true)
                        .addUserIds(usersIds)
                        .setName(chatName)

createChannel(params) { groupChannel, createGroupChannelException -> 
    ...
}

```

Do you have any advice?  
Thank you.
