Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix editing only the first field on a DoubleEditSetting (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored Mar 8, 2019
1 parent 8193e6f commit 1e98122
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ public void setDefaultSecondValue(String value) {
}

public String getSecondText() {
return mEdit2.getText().toString().equals(mEdit2.getHint()) ? mDefaultSecondValue : mEdit2.getText().toString();
if (mDefaultSecondValue != null) {
return mEdit2.getText().toString().equals(mEdit2.getHint()) ? mDefaultSecondValue : mEdit2.getText().toString();
} else {
return mEdit2.getText().toString();
}
}

public void setSecondText(String text) {
Expand Down

0 comments on commit 1e98122

Please sign in to comment.