From f83a23771fae737b888ffcb6cacf50baec9b549d Mon Sep 17 00:00:00 2001 From: Gerben Droogers Date: Sat, 9 Dec 2017 22:41:07 +0100 Subject: [PATCH] When sync delay and timeout are not set use default --- app/src/main/java/eu/droogers/smsmatrix/MatrixService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java b/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java index 1e29f60..c8443c0 100644 --- a/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java +++ b/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java @@ -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);