From: Eugene Crosser Date: Mon, 30 Jan 2012 20:26:36 +0000 (+0400) Subject: fix update period X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=ac451ca57e40a307bffc8e8d6e659abba88d93cc;p=WhereAmI.git fix update period --- 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.