]> average.org Git - WhereAmI.git/commitdiff
only can execute every new async task once
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Mon, 30 Jan 2012 11:14:12 +0000 (15:14 +0400)
committerEugene Crosser <Eugene.Crosser@ru.ibm.com>
Mon, 30 Jan 2012 11:14:12 +0000 (15:14 +0400)
src/org/average/whereami/WhereAmI.java

index 5a665d1ed02346e3eae46830b3ebf9558eef60dd..aa980ecf58a0683dafc057a9dfb33aa94d2b0366 100644 (file)
@@ -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);
         }
     };