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