fix offline success intent being sent too soon because imagecacheservice

was not being properly detected
This commit is contained in:
Andrew Dolgov 2013-07-16 23:12:53 +04:00
parent 3ec972abcb
commit 6b431f01f4

View File

@ -125,7 +125,7 @@ public class OfflineDownloadService extends Service {
private boolean isCacheServiceRunning() { private boolean isCacheServiceRunning() {
ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
if ("org.fox.ttrss.ImageCacheService".equals(service.service.getClassName())) { if ("org.fox.ttrss.util.ImageCacheService".equals(service.service.getClassName())) {
return true; return true;
} }
} }