1
0
mirror of https://github.com/tijder/SmsMatrix.git synced 2024-10-27 18:24:01 +00:00

When sync delay and timeout are not set use default

This commit is contained in:
Gerben Droogers 2017-12-09 22:41:07 +01:00
parent eb6224ed63
commit f83a23771f

View File

@ -37,8 +37,8 @@ public class MatrixService extends Service {
username = sp.getString("username", "");
device = sp.getString("device", "");
hsUrl = sp.getString("hsUrl", "");
syncDelay = sp.getString("syncDelay", "");
syncTimeout = sp.getString("syncTimeout", "");
syncDelay = sp.getString("syncDelay", "12");
syncTimeout = sp.getString("syncTimeout", "60");
if (mx == null && !botUsername.isEmpty() && !botPassword.isEmpty() && !username.isEmpty() && !device.isEmpty() && !hsUrl.isEmpty() && !syncDelay.isEmpty() && !syncTimeout.isEmpty()) {
mx = new Matrix(getApplication(), hsUrl, botUsername, botPassword, username, device, syncDelay, syncTimeout);