@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = this; requestWindowFeature(Window.FEATURE_NO_TITLE); isAvtive = true; fmm = getSupportFragmentManager(); mThreadPoolManager = ThreadPoolManager.getInstance(); }
protected void executeTask(Runnable run) { mThreadPoolManager.executeTask(run); }
/** * 子线程执行一个任务 * * @param task */ protected void executeTask(Task task) { this.lastTask = task; mThreadPoolManager.executeTask(task); }