A conversation can't be trimmed to 0.

This commit is contained in:
Moxie Marlinspike 2013-01-14 12:10:57 -08:00
parent fe43ef65ab
commit 232e7bba2d

View File

@ -383,6 +383,10 @@ public class ApplicationPreferencesActivity extends SherlockPreferenceActivity {
return false; return false;
} }
if (Integer.parseInt((String)newValue) < 1) {
return false;
}
preference.setSummary((String)newValue + " " + preference.setSummary((String)newValue + " " +
getString(R.string.ApplicationPreferencesActivity_messages_per_conversation)); getString(R.string.ApplicationPreferencesActivity_messages_per_conversation));
return true; return true;