FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Android] Fix missing use of ColorFilter in ImageView by ddfreiling · Pull Request #110 · NativeScript/tns-core-modules-widgets · GitHub

This repository was archived by the owner on Mar 21, 2019. It is now read-only.

[Android] Fix missing use of ColorFilter in ImageView - #110

Merged
manoldonev merged 2 commits into
NativeScript:masterfrom
ddfreiling:fix/color-filter
Mar 20, 2018
Merged

manoldonev merged 2 commits into
NativeScript:masterfrom
ddfreiling:fix/color-filter

Conversation

ddfreiling commented Jan 12, 2018 •
edited
Loading

Copy link
Copy Markdown
Contributor

On Android setting a tintColor on an <Image> had no effect.

Turns out Nativescript's custom ImageView never applied the ColorFilter to the Paint in the draw method. Likely due to refactoring of the draw method.

https://github.com/NativeScript/NativeScript/blob/02dba02e8bd35a270d6e2a8e4db0a18ec89c5615/tns-core-modules/ui/image/image.android.ts#L146

ns-bot commented Jan 12, 2018

Copy link
Copy Markdown

Can one of the admins verify this patch?

ddfreiling changed the title Android: Fix missing use of ColorFilter in ImageView draw method Android: Fix missing use of ColorFilter in ImageView Jan 12, 2018
ddfreiling changed the title Android: Fix missing use of ColorFilter in ImageView [Android] Fix missing use of ColorFilter in ImageView Jan 26, 2018

Copy link
Copy Markdown
Contributor

Merging this based on NativeScript/NativeScript#5555

manoldonev merged commit bdb6559 into NativeScript:master Mar 20, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL