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 { ...@@ -8,8 +8,8 @@ android {
applicationId "com.github.axet.smsgate" applicationId "com.github.axet.smsgate"
minSdkVersion 9 minSdkVersion 9
targetSdkVersion 23 targetSdkVersion 23
versionCode 204 versionCode 205
versionName "1.8.20" versionName "1.8.21"
} }
packagingOptions { packagingOptions {
exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE'
......
...@@ -1169,7 +1169,7 @@ public class FirebaseService extends Service implements FirebaseAuth.AuthStateLi ...@@ -1169,7 +1169,7 @@ public class FirebaseService extends Service implements FirebaseAuth.AuthStateLi
@Override @Override
public void run() { public void run() {
count++; count++;
if (count > 60) if (count > 10)
return; return;
if (messages() == 0) { // we expect message. not yet here? retry if (messages() == 0) { // we expect message. not yet here? retry
handler.postDelayed(this, 1000); handler.postDelayed(this, 1000);
......
...@@ -167,7 +167,7 @@ public class SmsReplyService extends ServiceBase { ...@@ -167,7 +167,7 @@ public class SmsReplyService extends ServiceBase {
public static long scheduleReplyBackup(Context context) { public static long scheduleReplyBackup(Context context) {
Alarms a = new Alarms(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 @Override
......
...@@ -399,7 +399,7 @@ public class SmsBackupService extends ServiceBase { ...@@ -399,7 +399,7 @@ public class SmsBackupService extends ServiceBase {
// //
if (state.backupType == BackupType.INCOMING && state.currentSyncedItems == 0) { if (state.backupType == BackupType.INCOMING && state.currentSyncedItems == 0) {
Log.d(TAG, "re-scheduling incoming backup"); Log.d(TAG, "re-scheduling incoming backup");
scheduleIncomingBackup(this, 5); scheduleBackup(this, 5);
} else { } else {
Log.d(TAG, "scheduling next backup"); Log.d(TAG, "scheduling next backup");
scheduleNextBackup(); 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