mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
A conversation can't be trimmed to 0.
This commit is contained in:
@@ -382,6 +382,10 @@ public class ApplicationPreferencesActivity extends SherlockPreferenceActivity {
|
||||
Log.w("ApplicationPreferencesActivity", nfe);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Integer.parseInt((String)newValue) < 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
preference.setSummary((String)newValue + " " +
|
||||
getString(R.string.ApplicationPreferencesActivity_messages_per_conversation));
|
||||
|
||||
Reference in New Issue
Block a user