@@ -176,7 +176,7 @@ public abstract class AdvancedAsyncTask<Params, Progress, Result> implements Mes
176176 private WorkerRunnable <Params , Result > mWorker ;
177177 private FutureTask <Result > mFuture ;
178178
179- private volatile AsyncTaskStatus mStatus = AsyncTaskStatus .PENDING ;
179+ private volatile AdvancedAsyncTaskStatus mStatus = AdvancedAsyncTaskStatus .PENDING ;
180180
181181 private final AtomicBoolean mCancelled = new AtomicBoolean ();
182182 private final AtomicBoolean mTaskInvoked = new AtomicBoolean ();
@@ -289,7 +289,7 @@ private void postResultIfNotInvoked(Result result) {
289289
290290 private Result postResult (Result result ) {
291291 @ SuppressWarnings ("unchecked" )
292- Message message = getHandler ().obtainMessage (MESSAGE_POST_RESULT , new AsyncTaskResult <Result >(this , result ));
292+ Message message = getHandler ().obtainMessage (MESSAGE_POST_RESULT , new AdvancedAsyncTaskResult <Result >(this , result ));
293293 message .sendToTarget ();
294294 return result ;
295295 }
@@ -299,7 +299,7 @@ private Result postResult(Result result) {
299299 *
300300 * @return The current status.
301301 */
302- public final AsyncTaskStatus getStatus () {
302+ public final AdvancedAsyncTaskStatus getStatus () {
303303 return mStatus ;
304304 }
305305
@@ -546,7 +546,7 @@ public final AdvancedAsyncTask<Params, Progress, Result> execute(Params... param
546546 * @see #execute(Object[])
547547 */
548548 public final AdvancedAsyncTask <Params , Progress , Result > executeOnExecutor (Executor exec , Params ... params ) {
549- if (mStatus != AsyncTaskStatus .PENDING ) {
549+ if (mStatus != AdvancedAsyncTaskStatus .PENDING ) {
550550 switch (mStatus ) {
551551 case RUNNING :
552552 throw new IllegalStateException ("Cannot execute task:"
@@ -558,7 +558,7 @@ public final AdvancedAsyncTask<Params, Progress, Result> executeOnExecutor(Execu
558558 }
559559 }
560560
561- mStatus = AsyncTaskStatus .RUNNING ;
561+ mStatus = AdvancedAsyncTaskStatus .RUNNING ;
562562
563563 onPreExecute ();
564564
@@ -600,7 +600,7 @@ protected final void publishProgress(Progress... values) {
600600 return ;
601601
602602 getHandler ().obtainMessage (MESSAGE_POST_PROGRESS ,
603- new AsyncTaskResult <Progress >(this , values )).sendToTarget ();
603+ new AdvancedAsyncTaskResult <Progress >(this , values )).sendToTarget ();
604604 }
605605
606606 void finish (Result result ) {
@@ -610,7 +610,7 @@ void finish(Result result) {
610610 onPostExecute (result );
611611 }
612612
613- mStatus = AsyncTaskStatus .FINISHED ;
613+ mStatus = AdvancedAsyncTaskStatus .FINISHED ;
614614 }
615615
616616}
0 commit comments