Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0da93008 authored by Brian Attwell's avatar Brian Attwell
Browse files

mutate() BitmapDrawable before directly editing

ExpandingEntryCardView directly modifies BitmapDrawables instead
of calling ImageView#setTint(). This was convenient, but had
the side affect of preventing re-use of these BitmapDrawables
with different tints.

Now that we want to share the same BitmapDrawables inside the
edit screen, we need to call mutate() on these drawables before
editing them in order to avoid affecting the tint in the edit
screen. Alternatively, we could change ExpandingEntryCardView
to use ImageView#setTint() instead. But this is more work.

Bug: 18004959
Change-Id: I5c0e33348cf538a69a10802a6205ad36fc548d54
parent 368e2c6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment