From 1bd7f9add43d0121b846c64d9c58b6734e91d481 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sun, 14 Mar 2021 02:20:35 +0900 Subject: [PATCH] Start sync service after boot complete and update default freq to 30 secs. --- app/src/main/AndroidManifest.xml | 6 +++++ .../settings/DMPreferencesFragment.java | 2 +- .../services/BootCompletedReceiver.java | 27 +++++++++++++++++++ .../services/DMSyncAlarmReceiver.java | 2 +- .../instagrabber/services/DMSyncService.java | 15 +++++++++-- 5 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 app/src/main/java/awais/instagrabber/services/BootCompletedReceiver.java diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 403ffd78..018eacb3 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -8,6 +8,7 @@ + + + + + + { if (!notificationsEnabled || inboxResource == null || inboxResource.status != Resource.Status.SUCCESS) { stopSelf();