Skip to content

Bugfix/437 setting toolbar color to white does nothing#438

Merged
Canato merged 14 commits into
CanHub:mainfrom
Devenom1:bugfix/437-setting-toolbar-color-to-white-does-nothing
Sep 26, 2022
Merged

Bugfix/437 setting toolbar color to white does nothing#438
Canato merged 14 commits into
CanHub:mainfrom
Devenom1:bugfix/437-setting-toolbar-color-to-white-does-nothing

Conversation

@Devenom1

@Devenom1 Devenom1 commented Sep 15, 2022

Copy link
Copy Markdown
Contributor

close #437

Added customizations to toolbar colors [New Feature]

Description:

Users can not customize toolbar colors of back button, title and menu texts.

Check list for the Code Reviewer:

  • CHANGELOG
  • README
  • Wiki
  • Version Number

Fixed and issue where setting white color to toolbar would do nothing [Bug]

Bug

Setting white color as the toolbar color would do nothing

Cause:

A default of -1 was used as the toolbar color which conflicted with the value of Color.WHITE in the android source code. So when we checked if Color.WHITE i.e. -1 was set this would assume that no color was set to the toolbar.

Reproduce

Set toolbar color to Color.WHITE.
This should set the toolbar color to white.
But the toolbar will remain the original color i.e. the primary color set in the styles which is currently Purple.

How the bug was solved:

Set the default color to null instead of -1.

screenshot

@Devenom1
Devenom1 requested a review from a team as a code owner September 15, 2022 15:52
@@ -239,6 +264,19 @@ open class CropImageActivity :
)

Check warning

Code scanning / detekt

Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.

Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.

Check warning

Code scanning / detekt

Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.

Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.
@Canato
Canato merged commit 51de25a into CanHub:main Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - Setting toolbar color to White does nothing

3 participants