update
This commit is contained in:
1 parent
f5318cf6d3
commit
748c5cb812
1 file changed
+4
-1
@@ -74,7 +74,10 @@ public class EditTextPreference extends DialogPreference {
|
||||
public boolean onClick(MaterialAlertDialog dialog, int which) {
|
||||
super.onClick(dialog, which);
|
||||
if (which == MaterialAlertDialog.POSITIVE) {
|
||||
String value = ((EditText) dialog.findViewById(R.id.edittextpreference_edittext)).getText().toString();
|
||||
EditText et = (EditText) dialog.findViewById(R.id.edittextpreference_edittext);
|
||||
if (et == null)
|
||||
return true;
|
||||
String value = et.getText().toString();
|
||||
if (callChangeListener(value)) {
|
||||
persistString(value);
|
||||
setSummary(value);
|
||||
|
||||
Reference in new issue
Block a user