mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 07:57:30 +00:00
A conversation can't be trimmed to 0.
This commit is contained in:
parent
fe43ef65ab
commit
232e7bba2d
@ -383,6 +383,10 @@ public class ApplicationPreferencesActivity extends SherlockPreferenceActivity {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Integer.parseInt((String)newValue) < 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
preference.setSummary((String)newValue + " " +
|
||||
getString(R.string.ApplicationPreferencesActivity_messages_per_conversation));
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user