@Override
public final T call() throws Exception {
try {
- final T result = doInBackground();
+ final T result = work();
if (listener != null) {
listener.done(result);
}
}
}
- protected abstract T doInBackground() throws Exception;
+ protected abstract T work() throws Exception;
public final int getId() {
return id;
}
@Override
- protected ConvertResult doInBackground() throws Exception {
+ protected ConvertResult work() throws Exception {
if (!profile.isConvert()) {
return new ConvertResult(true, "");
}
// }
// }
@Override
- public DownloadResult doInBackground() throws Exception {
+ public DownloadResult work() throws Exception {
publish(new DownloadProgress(PROCESS, "ログイン中"));