fix #2048 autosave edittext

fix #2048 autosave edittext
demo: https://cloudup.com/cwprpfKkMFg
Minor nit: MAX_ENTRIES should be private.