Commit a33109f9 authored by axet's avatar axet 🍄

Merge branch 'smsgate-1.8.21'

parents 93a78f34 29ca39a8
Pipeline #20864611 passed with stage
in 19 seconds
......@@ -8,8 +8,8 @@ android {
applicationId "com.github.axet.smsgate"
minSdkVersion 9
targetSdkVersion 23
versionCode 204
versionName "1.8.20"
versionCode 205
versionName "1.8.21"
}
packagingOptions {
exclude 'META-INF/LICENSE'
......
......@@ -1169,7 +1169,7 @@ public class FirebaseService extends Service implements FirebaseAuth.AuthStateLi
@Override
public void run() {
count++;
if (count > 60)
if (count > 10)
return;
if (messages() == 0) { // we expect message. not yet here? retry
handler.postDelayed(this, 1000);
......
......@@ -167,7 +167,7 @@ public class SmsReplyService extends ServiceBase {
public static long scheduleReplyBackup(Context context) {
Alarms a = new Alarms(context);
return a.scheduleBackup(300, REPLY, false, SmsReplyService.class); // every 5 mins
return a.scheduleBackup(5 * 60, REPLY, false, SmsReplyService.class); // every 5 mins
}
@Override
......
......@@ -399,7 +399,7 @@ public class SmsBackupService extends ServiceBase {
//
if (state.backupType == BackupType.INCOMING && state.currentSyncedItems == 0) {
Log.d(TAG, "re-scheduling incoming backup");
scheduleIncomingBackup(this, 5);
scheduleBackup(this, 5);
} else {
Log.d(TAG, "scheduling next backup");
scheduleNextBackup();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment