Skip to content

Commit

Permalink
Merge pull request #449 from Kommunicate-io/CM-1576
Browse files Browse the repository at this point in the history
[CM-1576] - Status bar theme colour Fix
  • Loading branch information
joshi-kt authored Nov 8, 2023
2 parents 8b08ee3 + 2ae9d24 commit 6227f7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/applozic-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"toolbarTitleColor": "#ffffff",
"toolbarSubtitleColor": "#ffffff",
"toolbarColor": "",
"statusBarColor": "#ffffff",
"statusBarColor": "",
"richMessageThemeColor": "",
"restrictMessageTypingWithBots": false,
"enableFaqOption": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ protected void onCreate(Bundle savedInstanceState) {
customToolbarLayout = myToolbar.findViewById(R.id.custom_toolbar_root_layout);
myToolbar.setBackgroundColor(KmThemeHelper.getInstance(this, alCustomizationSettings).getToolbarColor());
customToolbarLayout.setBackgroundColor(KmThemeHelper.getInstance(this, alCustomizationSettings).getToolbarColor());
KmUtils.setStatusBarColor(this, KmThemeHelper.getInstance(this, alCustomizationSettings).getStatusBarColor());
if (!alCustomizationSettings.getStatusBarColor().isEmpty()) {
KmUtils.setStatusBarColor(this, KmThemeHelper.getInstance(this, alCustomizationSettings).getStatusBarColor());
} else {
KmUtils.setStatusBarColor(this, KmThemeHelper.getInstance(this, alCustomizationSettings).getPrimaryColor());
}

setSupportActionBar(myToolbar);
setToolbarTitleSubtitleColorFromSettings();
Expand Down

0 comments on commit 6227f7f

Please sign in to comment.