Removed logging.
This commit is contained in:
parent
4f776e1e00
commit
a937f3b43b
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,7 @@ import static net.osmand.plus.liveupdates.LiveUpdatesHelper.preferenceUpdateFreq
|
||||||
|
|
||||||
public class PerformLiveUpdateAsyncTask
|
public class PerformLiveUpdateAsyncTask
|
||||||
extends AsyncTask<String, Object, IncrementalChangesManager.IncrementalUpdateList> {
|
extends AsyncTask<String, Object, IncrementalChangesManager.IncrementalUpdateList> {
|
||||||
private final static Log LOG = PlatformUtil.getLog(OsmLiveActivity.class);
|
private final static Log LOG = PlatformUtil.getLog(PerformLiveUpdateAsyncTask.class);
|
||||||
|
|
||||||
private final Context context;
|
private final Context context;
|
||||||
private final LocalIndexInfo localIndexInfo;
|
private final LocalIndexInfo localIndexInfo;
|
||||||
|
@ -42,6 +42,7 @@ public class PerformLiveUpdateAsyncTask
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPreExecute() {
|
protected void onPreExecute() {
|
||||||
|
LOG.debug("onPreExecute");
|
||||||
if (context instanceof AbstractDownloadActivity) {
|
if (context instanceof AbstractDownloadActivity) {
|
||||||
AbstractDownloadActivity activity = (AbstractDownloadActivity) context;
|
AbstractDownloadActivity activity = (AbstractDownloadActivity) context;
|
||||||
activity.setSupportProgressBarIndeterminateVisibility(true);
|
activity.setSupportProgressBarIndeterminateVisibility(true);
|
||||||
|
@ -58,6 +59,7 @@ public class PerformLiveUpdateAsyncTask
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected IncrementalChangesManager.IncrementalUpdateList doInBackground(String... params) {
|
protected IncrementalChangesManager.IncrementalUpdateList doInBackground(String... params) {
|
||||||
|
LOG.debug("doInBackground");
|
||||||
final OsmandApplication myApplication = getMyApplication();
|
final OsmandApplication myApplication = getMyApplication();
|
||||||
IncrementalChangesManager cm = myApplication.getResourceManager().getChangesManager();
|
IncrementalChangesManager cm = myApplication.getResourceManager().getChangesManager();
|
||||||
return cm.getUpdatesByMonth(params[0]);
|
return cm.getUpdatesByMonth(params[0]);
|
||||||
|
@ -65,6 +67,7 @@ public class PerformLiveUpdateAsyncTask
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(IncrementalChangesManager.IncrementalUpdateList result) {
|
protected void onPostExecute(IncrementalChangesManager.IncrementalUpdateList result) {
|
||||||
|
LOG.debug("onPostExecute");
|
||||||
if (context instanceof AbstractDownloadActivity) {
|
if (context instanceof AbstractDownloadActivity) {
|
||||||
AbstractDownloadActivity activity = (AbstractDownloadActivity) context;
|
AbstractDownloadActivity activity = (AbstractDownloadActivity) context;
|
||||||
activity.setSupportProgressBarIndeterminateVisibility(false);
|
activity.setSupportProgressBarIndeterminateVisibility(false);
|
||||||
|
|
Loading…
Reference in a new issue