enforce the service activation with general notifications

This commit is contained in:
stom79 2017-11-11 07:45:53 +01:00
parent 9cb365381f
commit 268f86a688
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ public class StreamingService extends IntentService {
protected void onHandleIntent(@Nullable Intent intent) {
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
boolean liveNotifications = sharedpreferences.getBoolean(Helper.SET_LIVE_NOTIFICATIONS, true);
if( liveNotifications){
boolean notify = sharedpreferences.getBoolean(Helper.SET_NOTIFY, true);
if( liveNotifications && notify){
Iterator it = httpsURLConnections.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pair = (Map.Entry)it.next();