Skip to content

Commit

Permalink
Lines authored by ostrulovich
Browse files Browse the repository at this point in the history
This commit forms part of the blame-preserving initial commit suite.
  • Loading branch information
strulovich authored and Robert Spencer committed Mar 29, 2017
1 parent a0ac809 commit 1fd4a62
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,9 @@ public static Predicate<View> hasDrawable(final Drawable drawable) {
public boolean apply(@Nullable final View input) {
if (input instanceof ImageView) {
final Drawable imageDrawable = ((ImageView) input).getDrawable();

if (drawable instanceof BitmapDrawable && !(imageDrawable instanceof BitmapDrawable)) {
return false;
}
}

0 comments on commit 1fd4a62

Please sign in to comment.