aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/settings/TemplateTextPreference.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/settings/TemplateTextPreference.java')
-rw-r--r--main/src/cgeo/geocaching/settings/TemplateTextPreference.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/settings/TemplateTextPreference.java b/main/src/cgeo/geocaching/settings/TemplateTextPreference.java
index 9eaaa67..a703231 100644
--- a/main/src/cgeo/geocaching/settings/TemplateTextPreference.java
+++ b/main/src/cgeo/geocaching/settings/TemplateTextPreference.java
@@ -48,7 +48,7 @@ public class TemplateTextPreference extends DialogPreference {
settingsActivity = (SettingsActivity) this.getContext();
editText = (EditText) view.findViewById(R.id.signature_dialog_text);
- editText.setText(getPersistedString(initialValue != null ? initialValue.toString() : StringUtils.EMPTY));
+ editText.setText(getPersistedString(initialValue != null ? initialValue : StringUtils.EMPTY));
Button button = (Button) view.findViewById(R.id.signature_templates);
button.setOnClickListener(new View.OnClickListener() {