--- android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java 2011/02/09 17:57:08 1226 +++ android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java 2011/02/09 18:23:53 1227 @@ -31,7 +31,6 @@ private static Side9Data mUsedData; private static Bitmap mUsedBitmap; private static long mTimestamp; - private static boolean mReloadData; final static long UDPATESPAN = 4*60*60*1000; @@ -115,9 +114,10 @@ //we need to do a full reload of all data now and then because eb.dk sometimes are a bit slow with publishing the new //daily picture, and this is a (crude) way to ensure we have the latest data + boolean reloadData = false; if (System.currentTimeMillis() > (mTimestamp+UDPATESPAN) ) { Log.i(TAG, "time elapsed, force XML reload"); - mReloadData = true; + reloadData = true; } @@ -126,7 +126,7 @@ try { Side9Data newData = Side9Xml.loadXml(androidID); - if (! newData.equals(mUsedData) || mReloadData == true) { + if (! newData.equals(mUsedData) || reloadData == true) { Log.i(TAG, "(Re)loading image:" + newData.url); @@ -136,7 +136,6 @@ mUsedData = newData; // if we made it to here without exceptions, save the new data mUsedBitmap = image; mTimestamp = System.currentTimeMillis(); - mReloadData = false; } // endif