Set default maximum attachment download size to 64 KB

This commit is contained in:
M66B
2019-04-07 07:58:34 +02:00
parent 7b5b300e98
commit d3761184fe
4 changed files with 4 additions and 3 deletions

View File

@@ -2247,7 +2247,7 @@ public class FragmentMessages extends FragmentBase {
autoExpanded = false;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
long download = prefs.getInt("download", 32768);
long download = prefs.getInt("download", MessageHelper.DEFAULT_ATTACHMENT_DOWNLOAD_SIZE);
if (download == 0)
download = Long.MAX_VALUE;