예제 #1
0
 @Override
 public void stopHandler(String id, long progress, long max) {
   Node node = mAdapter.getAllNodeMap().get(id);
   node.setProgress(progress);
   node.setMax(max);
   node.setStatus(INode.STATUS_STOP);
 }
예제 #2
0
 @Override
 public void startHandler(String id, long max) {
   Node node = mAdapter.getAllNodeMap().get(id);
   node.setMax(max);
   node.setStatus(INode.STATUS_START);
   setViewData(node);
 }
예제 #3
0
 @Override
 public void progressHandler(String id, long progress, long max) {
   Node node = mAdapter.getAllNodeMap().get(id);
   if (node.getStatus() != INode.STATUS_START) {
     return;
   }
   node.setStatus(INode.STATUS_START);
   node.setProgress(progress);
   node.setMax(max);
   setViewData(node);
 }