do not use progressbar in offlineactivity, stopself in download service
This commit is contained in:
parent
4fb366178c
commit
21126446c2
@ -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);
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user