From fe05d7de7a0fe4f78d0f650dc91ebbcacb60d469 Mon Sep 17 00:00:00 2001 From: Vavassor Date: Thu, 27 Apr 2017 23:33:43 -0400 Subject: [PATCH] Raises the check interval to a more reasonable level. --- app/src/main/java/com/keylesspalace/tusky/BaseActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java b/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java index 476e6c34..da7ecd65 100644 --- a/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java @@ -211,7 +211,7 @@ public class BaseActivity extends AppCompatActivity { }); } else { // Start up the MessagingService on a repeating interval for "pull" notifications. - long checkInterval = 60 * 1000; // * 10; + long checkInterval = 60 * 1000 * 5; AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(this, MessagingService.class); final int SERVICE_REQUEST_CODE = 8574603; // This number is arbitrary.