Reworked background services via Android-Job. This finally adds support for newer Android versions (respecting Doze mode et al.) and stops crashing the app on Android 8. Fixes#462 and fixes#464.
@ -73,18 +75,8 @@ public class NotificationSettingsActivity extends PreferenceCompatActivity imple
@@ -73,18 +75,8 @@ public class NotificationSettingsActivity extends PreferenceCompatActivity imple
@ -85,11 +84,7 @@ public class SystemSettingsActivity extends PreferenceCompatActivity {
@@ -85,11 +84,7 @@ public class SystemSettingsActivity extends PreferenceCompatActivity {
feed.getName()+" has "+(hasUnread.contains(feed.getName())?"":"no ")+"unread items");
@ -111,16 +114,16 @@ public class RssCheckerService extends IntentService {
@@ -111,16 +114,16 @@ public class RssCheckerService extends IntentService {
if(unread==0){
// No new items; just exit
return;
returnJob.Result.SUCCESS;
}
// Provide a notification, since there are new RSS items
@ -66,19 +61,12 @@ public class ServerCheckerService extends IntentService {
@@ -66,19 +61,12 @@ public class ServerCheckerService extends IntentService {
@ -155,11 +143,11 @@ public class ServerCheckerService extends IntentService {
@@ -155,11 +143,11 @@ public class ServerCheckerService extends IntentService {
// Notify on new and now-done torrents for this server
log.d(this,server.getName()+": "+newTorrents.size()+" new torrents, "+doneTorrents.size()
@ -167,14 +155,14 @@ public class ServerCheckerService extends IntentService {
@@ -167,14 +155,14 @@ public class ServerCheckerService extends IntentService {
Stringtitle;
if(newTorrents.size()>0&&doneTorrents.size()>0){
// Note: use the 'one' plural iif 1 new torrent was added and 1 was newly finished
@ -187,7 +175,7 @@ public class ServerCheckerService extends IntentService {
@@ -187,7 +175,7 @@ public class ServerCheckerService extends IntentService {
@ -198,7 +186,7 @@ public class ServerCheckerService extends IntentService {
@@ -198,7 +186,7 @@ public class ServerCheckerService extends IntentService {
@ -207,7 +195,7 @@ public class ServerCheckerService extends IntentService {
@@ -207,7 +195,7 @@ public class ServerCheckerService extends IntentService {
@ -217,6 +205,7 @@ public class ServerCheckerService extends IntentService {
@@ -217,6 +205,7 @@ public class ServerCheckerService extends IntentService {
<stringname="pref_seedbox_xirviknofolder">Kan ikke hente indstillingen for Xirvik SCGI; Prøv igen senere, eller ret din server adresseindstilling</string>
<stringname="pref_seedbox_xirviknofolder">Die Xirvik SCGI-Ordner-Einstellung kann nicht abgerufen werden; Bitte versuchen Sie es später erneut, oder korrigieren Sie ihre Serveradresse</string>
<stringname="pref_seedbox_xirviknofolder">Impossible de récupérer le paramètre dossier de Xirvik SCGI ; Veuillez réessayer ultérieurement ou corriger le réglage d\'adresse de votre serveur</string>
<stringname="pref_seedbox_xirviknofolder">Nem lehet letölteni a Xirvik SCGI mappa beállításait; próbálja meg újra később, vagy javítsa ki a szerver címének beállításait</string>
<stringname="pref_seedbox_xirviknofolder">Impossibile recuperare la cartella Xirvik SCGI; riprovare più tardi o correggere l\'indirizzo del server</string>
<stringname="pref_seedbox_xirviknofolder">Não foi possível recuperar a pasta de configuração do Xirvik SCGI; por favor, tente novamente mais tarde ou corrija a configuração de endereço do servidor</string>
<stringname="pref_seedbox_xirviknofolder">Não é possível obter a configuração de pasta Xirvik SCGI; por favor, tente novamente mais tarde ou corrija a sua configuração de endereço do servidor</string>
<stringname="pref_seedbox_xirviknofolder">Не удается получить настройки папок Xirvik SCGI. Пожалуйста, повторите попытку позже или измените адрес сервера.</string>
<stringname="pref_seedbox_xirviknofolder">Går inte att hämta Xirvik SCGI mappinställningen. Försök igen senare eller korrigera din serveradress</string>
<stringname="pref_seedbox_xirviknofolder">Xirvik SCGI klasör ayarı alınamıyor; Lütfen daha sonra yeniden deneyin veya sunucu adresi ayarını doğrulayın</string>