コード例 #1
0
 /** Method invoked to stop the rename service. */
 private void doStopRenameService() {
   if (mApplication.isRenameFileTaskRunning()) {
     mApplication.setRenameFileTaskCanceled(true);
   } else {
     doFinish();
   }
 }
コード例 #2
0
 /** This method will start the rename service. */
 private void doStartRenameService() {
   mApplication.setRenameFileRequested(true);
   if (!mApplication.isRenameFileTaskRunning()) {
     new RenameFileAsyncTask(mApplication, this, true).execute();
   }
 }