]> average.org Git - WhereAmI.git/commitdiff
fix update period
authorEugene Crosser <crosser@average.org>
Mon, 30 Jan 2012 20:26:36 +0000 (00:26 +0400)
committerEugene Crosser <crosser@average.org>
Mon, 30 Jan 2012 20:26:36 +0000 (00:26 +0400)
src/org/average/whereami/WhereAmI.java

index 2c197cf73028e222e7a05c11757be645a69c56b6..641d73fd558f63c063bda05f0cef5711215ed753 100644 (file)
@@ -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.