Commit f62266dc authored by Lennart Bader's avatar Lennart Bader
Browse files

Enabled caching for News

parent c3ea8aa5
......@@ -128,6 +128,6 @@ public class StartFragment extends Fragment {
((MainActivity)getActivity()).getNavi().snackbar(getString(R.string.api_news_error));
}
}
}, true);
});
}
}
......@@ -42,7 +42,6 @@ public class TfgNews extends MytfgObject {
callback.callback(true);
return;
}
}
loaded = false;
// Otherwise request new data
......@@ -52,7 +51,6 @@ public class TfgNews extends MytfgObject {
public void callback(JSONObject result, int responseCode) {
if (responseCode == 200) {
loaded = true;
Log.d("NEWS", result.toString());
if (parse(result)) {
saveToCache(result);
callback.callback(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment