Browse Source

constructors instead of setters

pull/54/head
Thodoris1999 6 years ago
parent
commit
d7bd211de6
  1. 14
      app/src/main/java/gr/thmmy/mthmmy/utils/parsing/NewParseTask.java

14
app/src/main/java/gr/thmmy/mthmmy/utils/parsing/NewParseTask.java

@ -40,6 +40,20 @@ public abstract class NewParseTask<U, V> extends AsyncTask<U, Void, V> {
super.onPostExecute(v);
}
public NewParseTask(OnParseTaskStartedListener onParseTaskStartedListener, OnParseTaskCancelledListener onParseTaskCancelledListener,
OnParseTaskFinishedListener onParseTaskFinishedListener) {
this.onParseTaskStartedListener = onParseTaskStartedListener;
this.onParseTaskCancelledListener = onParseTaskCancelledListener;
this.onParseTaskFinishedListener = onParseTaskFinishedListener;
}
public NewParseTask(OnParseTaskStartedListener onParseTaskStartedListener, OnParseTaskFinishedListener onParseTaskFinishedListener) {
this.onParseTaskStartedListener = onParseTaskStartedListener;
this.onParseTaskFinishedListener = onParseTaskFinishedListener;
}
public NewParseTask() { }
public void setOnParseTaskStartedListener(OnParseTaskStartedListener onParseTaskStartedListener) {
this.onParseTaskStartedListener = onParseTaskStartedListener;
}

Loading…
Cancel
Save