From c1a4c2224d33c39c436462c3d8a1ad63840c74d5 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Mon, 30 Jan 2012 15:38:10 +0400 Subject: [PATCH] catch cancellation --- src/org/average/whereami/WhereAmI.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/org/average/whereami/WhereAmI.java b/src/org/average/whereami/WhereAmI.java index e9c3c03..988f1fb 100644 --- a/src/org/average/whereami/WhereAmI.java +++ b/src/org/average/whereami/WhereAmI.java @@ -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) { -- 2.43.0