am 03a7c4c6: Fix shared drawable state
* commit '03a7c4c6d4f30416b3fa6e9018f098c0fa41bbd5': Fix shared drawable state
This commit is contained in:
@@ -867,13 +867,13 @@ public class RemoteViews implements Parcelable, Filter {
|
||||
if (targetDrawable != null) {
|
||||
// Perform modifications only if values are set correctly
|
||||
if (alpha != -1) {
|
||||
targetDrawable.setAlpha(alpha);
|
||||
targetDrawable.mutate().setAlpha(alpha);
|
||||
}
|
||||
if (filterMode != null) {
|
||||
targetDrawable.setColorFilter(colorFilter, filterMode);
|
||||
targetDrawable.mutate().setColorFilter(colorFilter, filterMode);
|
||||
}
|
||||
if (level != -1) {
|
||||
targetDrawable.setLevel(level);
|
||||
targetDrawable.mutate().setLevel(level);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user