update tiles if outdated (use lastModified tag and only update on wifi)

This commit is contained in:
Philipp Schaefer
2013-12-21 18:39:50 +01:00
parent 8f5072dda5
commit c624a789d5
3 changed files with 8 additions and 3 deletions

View File

@ -237,7 +237,7 @@ public class IITC_WebView extends WebView {
}
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
private boolean isConnectedToWifi() {
public boolean isConnectedToWifi() {
ConnectivityManager conMan = (ConnectivityManager) getContext()
.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo wifi = conMan.getNetworkInfo(ConnectivityManager.TYPE_WIFI);