From ac451ca57e40a307bffc8e8d6e659abba88d93cc Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Tue, 31 Jan 2012 00:26:36 +0400 Subject: [PATCH] fix update period --- src/org/average/whereami/WhereAmI.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/org/average/whereami/WhereAmI.java b/src/org/average/whereami/WhereAmI.java index 2c197cf..641d73f 100644 --- a/src/org/average/whereami/WhereAmI.java +++ b/src/org/average/whereami/WhereAmI.java @@ -143,8 +143,8 @@ public class WhereAmI extends Activity ut[i].launch(); } } - mHandler.postDelayed(resetInfo, updatedelay); - mHandler.postDelayed(this, 60000); + mHandler.postDelayed(resetInfo, 50000); + mHandler.postDelayed(this, updatedelay); } }; @@ -223,6 +223,9 @@ public class WhereAmI extends Activity boolean fullscreen = prefs.getBoolean("fullscreen", false); managewifi = prefs.getBoolean("managewifi", false); updatedelay = Long.parseLong(prefs.getString("updateperiod", "1200000")); + Log.w("WhereAmI", "fullscreen: " + fullscreen + + ", managewifi: " + managewifi + + ", updatedelay: " + updatedelay); if (fullscreen) { getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().clearFlags(WindowManager.LayoutParams. -- 2.43.0