Skip to content

Commit

Permalink
Fix Parcelable in ClearableAutoCompleteTextView and ClearableTextInpu…
Browse files Browse the repository at this point in the history
…tEditText

Same problem in ClearableEditText mentioned in #1
  • Loading branch information
Cielsk committed Sep 8, 2017
1 parent 500be59 commit 226ee74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ private ClearIconSavedState(Parcel source) {
mIsClearIconShown = isClearIconShown;
}

@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
out.writeByte((byte) (mIsClearIconShown ? 1 : 0 ));
}

boolean isClearIconShown() {
return mIsClearIconShown;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ private ClearIconSavedState(Parcel source) {
mIsClearIconShown = isClearIconShown;
}

@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
out.writeByte((byte) (mIsClearIconShown ? 1 : 0 ));
}

boolean isClearIconShown() {
return mIsClearIconShown;
}
Expand Down

0 comments on commit 226ee74

Please sign in to comment.