diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2011-12-06 19:07:14 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2011-12-06 19:07:14 +0300 |
| commit | 7b5f11ee4093fc644b942e4ead0c2cb725db6e89 (patch) | |
| tree | 8b4932de8aaa545d7f128c6a3b7a79a85527af6a /src/org/fox/ttrss/OfflineActivity.java | |
| parent | fb14a67a2a35b990fae88b7462bc721cd640ab18 (diff) | |
move offline download stuff into an IntentService
Diffstat (limited to 'src/org/fox/ttrss/OfflineActivity.java')
| -rw-r--r-- | src/org/fox/ttrss/OfflineActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/OfflineActivity.java b/src/org/fox/ttrss/OfflineActivity.java index 9ea3252d..4f6befd0 100644 --- a/src/org/fox/ttrss/OfflineActivity.java +++ b/src/org/fox/ttrss/OfflineActivity.java @@ -4,6 +4,7 @@ import org.fox.ttrss.OnlineServices.RelativeArticle; import android.app.AlertDialog; import android.app.Dialog; +import android.app.NotificationManager; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; @@ -63,6 +64,9 @@ public class OfflineActivity extends FragmentActivity implements OfflineServices } super.onCreate(savedInstanceState); + + NotificationManager nmgr = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); + nmgr.cancel(OfflineDownloadService.NOTIFY_DOWNLOADING); m_themeName = m_prefs.getString("theme", "THEME_DARK"); |