Commit b97faefc authored by Toni Beier's avatar Toni Beier

Feature: Timetable update course view on pull down refresh

parent f897e962
......@@ -118,13 +118,23 @@ public class TimetableFragment extends AbstractASiSTFragment {
}
@Override
public void onManagedError(CourseList parsed) {
public void onManagedError(final CourseList parsedCourses) {
// Called also after parsing was successfully done, but in background thread.
// FIX: rename method and add documentation
/*
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(getContext(), R.string.module_timetable_course_update_failure, Toast.LENGTH_LONG).show();
}
});
*/
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
drawTable(parsedCourses.getCourse());
}
});
refreshTimeTableSwipeLayout.setRefreshing(false);
}
}, null);
......
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