# Issue in dark mode

**URL:** https://community.sendbird.com/t/issue-in-dark-mode/4303
**Category:** Android
**Tags:** uikit, android
**Created:** [March 29, 2022, 6:59am UTC](https://community.sendbird.com/t/issue-in-dark-mode/4303 "2022-03-29T06:59:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aram](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@aram](https://community.sendbird.com/u/aram)
#### Post date: [March 29, 2022, 6:59am UTC](https://community.sendbird.com/t/issue-in-dark-mode/4303/1 "2022-03-29T06:59:15Z")

</div>

UIKit version : latest  
OS : Android 12

In dark mode, ChatChannelActivity theme is light mode.  
go back and click Chat again, it works

This is my code in onCreate()

```auto
when (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) {
            Configuration.UI_MODE_NIGHT_YES -> {
                SendBirdUIKit.setDefaultThemeMode(SendBirdUIKit.ThemeMode.Dark);
            }
            Configuration.UI_MODE_NIGHT_NO -> {
                SendBirdUIKit.setDefaultThemeMode(SendBirdUIKit.ThemeMode.Light);
            }
        }

```

---

<div class="post-metadata">

### Author: ![Dhaval\_Patel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dhaval_patel/32/1956_2.png) [@Dhaval\_Patel](https://community.sendbird.com/u/Dhaval_Patel)
#### Post date: [April 7, 2022, 9:22pm UTC](https://community.sendbird.com/t/issue-in-dark-mode/4303/3 "2022-04-07T21:22:20Z")

</div>

Hi @aram,

Can you please share the screen recording of what you are seeing so that we can check and investigate further. Meanwhile, if you have any other questions please let us know.

Best,  
Dhaval.
