From 7b5f11ee4093fc644b942e4ead0c2cb725db6e89 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Dec 2011 19:07:14 +0300 Subject: move offline download stuff into an IntentService --- src/org/fox/ttrss/OfflineActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org/fox/ttrss/OfflineActivity.java') 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"); -- cgit v1.2.3-54-g00ecf