From 841436be34e03b2bbfef067e7c82c6e055897495 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Mon, 30 Jan 2012 15:14:12 +0400 Subject: [PATCH] only can execute every new async task once --- src/org/average/whereami/WhereAmI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/average/whereami/WhereAmI.java b/src/org/average/whereami/WhereAmI.java index 5a665d1..aa980ec 100644 --- a/src/org/average/whereami/WhereAmI.java +++ b/src/org/average/whereami/WhereAmI.java @@ -58,11 +58,11 @@ public class WhereAmI extends Activity public UpdateTarget(TextView tv, Integer updater) { this.tv = tv; this.updater = updater; - this.task = new BgUpdate(); } public void launch() { tv.setText(R.string.updating); + task = new BgUpdate(); task.execute(); } } @@ -116,7 +116,7 @@ public class WhereAmI extends Activity boolean wifion = wifiman.setWifiEnabled(true); Log.w("WhereAmI", "enabling wifi result " + wifion); mHandler.postDelayed(resetInfo, 30000); - mHandler.postDelayed(this, 1200000); + mHandler.postDelayed(this, 60000); } }; -- 2.43.0