--- android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java 2010/06/26 14:24:49 922 +++ android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java 2010/06/26 18:04:07 923 @@ -30,6 +30,7 @@ private static Side9Data usedData; private static Bitmap usedBitmap; private static long timestamp; + private static boolean reloadData; final static long UDPATESPAN = 4*60*60*1000; @@ -113,13 +114,13 @@ if (System.currentTimeMillis() > (timestamp+UDPATESPAN) ) { Log.i(TAG, "time elapsed, force XML reload"); - usedData = null; + reloadData = true; } try { Side9Data newData = Side9Xml.loadXml(); - if (! newData.equals(usedData)) { + if (! newData.equals(usedData) || reloadData == true) { Log.i(TAG, "(Re)loading image:" + newData.url); @@ -129,7 +130,7 @@ usedData = newData; // if we made it to here without exceptions, save the new data usedBitmap = image; timestamp = System.currentTimeMillis(); - + reloadData = false; } // endif