]> average.org Git - WhereAmI.git/commitdiff
catch cancellation
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Mon, 30 Jan 2012 11:38:10 +0000 (15:38 +0400)
committerEugene Crosser <Eugene.Crosser@ru.ibm.com>
Mon, 30 Jan 2012 11:38:10 +0000 (15:38 +0400)
src/org/average/whereami/WhereAmI.java

index e9c3c0349518c736b390abcf542cced79027b6f3..988f1fb53149b88be2f366ce151d50483db5e3e6 100644 (file)
@@ -53,6 +53,12 @@ public class WhereAmI extends Activity
                     tvs.append(tm.format(" %d/%m/%Y %H:%M:%S"));
                 }
             }
+
+            @Override
+            protected void onCancelled() {
+                Log.w("WhereAmI", "BgUpdate callback cancelled");
+                runningtasks--;
+            }
         }
 
         public UpdateTarget(TextView tv, Integer updater) {