Increased default download size to 4 MB

pull/194/head
M66B 5 years ago
parent 5623ab51c8
commit 9b654287ea

@ -418,6 +418,9 @@ public class ApplicationEx extends Application
} else if (version < 1524) {
if (BuildConfig.PLAY_STORE_RELEASE)
editor.remove("experiments");
} else if (version < 1525) {
if (!prefs.contains("download"))
editor.putInt("download", 512 * 1024);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)

@ -116,7 +116,7 @@ public class MessageHelper {
private static File cacheDir = null;
static final int SMALL_MESSAGE_SIZE = 192 * 1024; // bytes
static final int DEFAULT_DOWNLOAD_SIZE = 512 * 1024; // bytes
static final int DEFAULT_DOWNLOAD_SIZE = 4 * 1024 * 1024; // bytes
static final String HEADER_CORRELATION_ID = "X-Correlation-ID";
private static final int MAX_MESSAGE_SIZE = 10 * 1024 * 1024; // bytes

Loading…
Cancel
Save