Commit 2f9381da authored by Toni Beier's avatar Toni Beier

Refactoring: Add an explanation, why onCoursesParsed method is used for view update

parent b21b6367
......@@ -119,16 +119,8 @@ public class TimetableFragment extends AbstractASiSTFragment {
@Override
public void onCoursesParsed(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();
}
});
*/
// Refresh UI in onCoursesParsed Method, because in Success run after Database update.
// So UI and Database are updating "parallel".
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
......
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