Skip to content

Commit

Permalink
MaterialEditText: Prevented initialisation in Developer Previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Louis NECH committed Apr 30, 2015
1 parent d003866 commit 9123cf9
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 9123cf9

Please sign in to comment.