Skip to content

Commit

Permalink
services: keep isForeground enabled at start
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Dec 16, 2024
1 parent d685d55 commit 8d3c071
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/com/archos/mediacenter/utils/trakt/TraktService.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public class TraktService extends Service implements DefaultLifecycleObserver {

private static final long TRAKT_SYNC_DELAY = 30; // in sec

private static volatile boolean isForeground = false;
private static volatile boolean isForeground = true;

private NetworkState networkState = null;
private PropertyChangeListener propertyChangeListener = null;
Expand Down
2 changes: 1 addition & 1 deletion src/com/archos/mediaprovider/video/NetworkAutoRefresh.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class NetworkAutoRefresh extends BroadcastReceiver implements DefaultLife

private static final Logger log = LoggerFactory.getLogger(NetworkAutoRefresh.class);

private static volatile boolean isForeground = false;
private static volatile boolean isForeground = true;
private static Application mApplication;

public static final String ACTION_RESCAN_INDEXED_FOLDERS = "com.archos.mediaprovider.video.NetworkAutoRefresh";
Expand Down
2 changes: 1 addition & 1 deletion src/com/archos/mediaprovider/video/RemoteStateService.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
public class RemoteStateService extends IntentService implements UpnpServiceManager.Listener, DefaultLifecycleObserver {
private static final Logger log = LoggerFactory.getLogger(RemoteStateService.class);

private static volatile boolean isForeground = false;
private static volatile boolean isForeground = true;

private static final Uri NOTIFY_URI = VideoStore.ALL_CONTENT_URI;
private static final Uri SERVER_URI = VideoStore.SmbServer.getContentUri();
Expand Down
2 changes: 1 addition & 1 deletion src/com/archos/mediaprovider/video/VideoProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class VideoProvider extends ContentProvider implements DefaultLifecycleOb

private final static boolean SKIP_THUMBNAILS = false;

private static volatile boolean isForeground = false;
private static volatile boolean isForeground = true;

private DbHolder mDbHolder;
private Handler mThumbHandler;
Expand Down
2 changes: 1 addition & 1 deletion src/com/archos/mediascraper/NfoExportService.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class NfoExportService extends IntentService implements DefaultLifecycleO
private static final String notifChannelName = "NfoExportService";
private static final String notifChannelDescr = "NfoExportService";

private static volatile boolean isForeground = false;
private static volatile boolean isForeground = true;

/**
* simple guard against multiple tasks of the same directory
Expand Down

0 comments on commit 8d3c071

Please sign in to comment.