From 21126446c22572609c3b8ac58880c034e0c46c83 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Jun 2012 09:54:57 +0400 Subject: [PATCH] do not use progressbar in offlineactivity, stopself in download service --- src/org/fox/ttrss/offline/OfflineActivity.java | 2 +- src/org/fox/ttrss/offline/OfflineDownloadService.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/offline/OfflineActivity.java b/src/org/fox/ttrss/offline/OfflineActivity.java index d863ee53..6e85f8ba 100644 --- a/src/org/fox/ttrss/offline/OfflineActivity.java +++ b/src/org/fox/ttrss/offline/OfflineActivity.java @@ -121,7 +121,7 @@ public class OfflineActivity extends FragmentActivity implements super.onCreate(savedInstanceState); - requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); + //requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); NotificationManager nmgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); nmgr.cancel(OfflineDownloadService.NOTIFY_DOWNLOADING); diff --git a/src/org/fox/ttrss/offline/OfflineDownloadService.java b/src/org/fox/ttrss/offline/OfflineDownloadService.java index 216ac61d..bb7d0554 100644 --- a/src/org/fox/ttrss/offline/OfflineDownloadService.java +++ b/src/org/fox/ttrss/offline/OfflineDownloadService.java @@ -122,6 +122,7 @@ public class OfflineDownloadService extends Service { // TODO send notification to activity? m_downloadInProgress = false; + stopSelf(); } private boolean isCacheServiceRunning() { @@ -151,6 +152,8 @@ public class OfflineDownloadService extends Service { m_readableDb.close(); m_writableDb.close(); + + stopSelf(); } private void initDatabase() {