Raises the check interval to a more reasonable level.

main
Vavassor 8 years ago
parent f67de9037d
commit fe05d7de7a
  1. 2
      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.

Loading…
Cancel
Save