Skip to content

Commit

Permalink
Merge pull request rengwuxian#179 from PLNech/master
Browse files Browse the repository at this point in the history
MaterialEditText: Prevented initialisation in Developer Previews
  • Loading branch information
rengwuxian committed Dec 30, 2015
2 parents 826ff8e + 9123cf9 commit b817073
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/src/main/java/com/rengwuxian/materialedittext/MaterialEditText.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ public MaterialEditText(Context context, AttributeSet attrs, int style) {
}

private void init(Context context, AttributeSet attrs) {
if (isInEditMode()) {
return;
}

iconSize = getPixel(32);
iconOuterWidth = getPixel(48);
iconOuterHeight = getPixel(32);
Expand Down

0 comments on commit b817073

Please sign in to comment.