Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
YiiGuxing committed Apr 23, 2017
1 parent dd1c3ac commit 27dc02e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ private DrawableInfo findAvatarDrawableById(int id) {
}

private boolean hasSameDrawable(Drawable drawable) {
for (DrawableInfo d : mDrawables) {
if (d.mDrawable == drawable) {
List<DrawableInfo> drawables = this.mDrawables;
for (int i = 0; i < drawables.size(); i++) {
if (drawables.get(i).mDrawable == drawable) {
return true;
}
}
Expand Down

0 comments on commit 27dc02e

Please sign in to comment.