do not use progressbar in offlineactivity, stopself in download service

This commit is contained in:
Andrew Dolgov 2012-06-20 09:54:57 +04:00
parent 4fb366178c
commit 21126446c2
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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() {