Revert "Moved OnPostExecuteListener to Download class"
This was a mistake
This reverts commit 038a86e35c
.
This commit is contained in:
parent
038a86e35c
commit
a6c7b27e2f
1 changed files with 5 additions and 6 deletions
|
@ -55,7 +55,7 @@ public class DatabaseConnector {
|
||||||
private MatrixReturnListener matrixReturnListener;
|
private MatrixReturnListener matrixReturnListener;
|
||||||
|
|
||||||
public static String errorMsg;
|
public static String errorMsg;
|
||||||
private Downloader.OnPostExecuteListener onPostExecuteListener;
|
private OnPostExecuteListener onPostExecuteListener;
|
||||||
|
|
||||||
public DatabaseConnector(String login, String password, String url, Resources resources){
|
public DatabaseConnector(String login, String password, String url, Resources resources){
|
||||||
this.login = login;
|
this.login = login;
|
||||||
|
@ -408,7 +408,7 @@ public class DatabaseConnector {
|
||||||
this.matrixReturnListener = matrixReturnListener;
|
this.matrixReturnListener = matrixReturnListener;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOnPostExecuteListener(Downloader.OnPostExecuteListener onPostExecuteListener){
|
public void setOnPostExecuteListener(OnPostExecuteListener onPostExecuteListener){
|
||||||
this.onPostExecuteListener = onPostExecuteListener;
|
this.onPostExecuteListener = onPostExecuteListener;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,7 +432,9 @@ public class DatabaseConnector {
|
||||||
public void onMatrixReturn(List<List<String>> data);
|
public void onMatrixReturn(List<List<String>> data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static interface OnPostExecuteListener {
|
||||||
|
void onPostExecute();
|
||||||
|
}
|
||||||
|
|
||||||
private static class Downloader extends AsyncTask<Request, Void, String> {
|
private static class Downloader extends AsyncTask<Request, Void, String> {
|
||||||
private OnFinishedListener onFinishedListener;
|
private OnFinishedListener onFinishedListener;
|
||||||
|
@ -550,9 +552,6 @@ public class DatabaseConnector {
|
||||||
void onFinished(String data, String error);
|
void onFinished(String data, String error);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static interface OnPostExecuteListener {
|
|
||||||
void onPostExecute();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Request{
|
class Request{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue